Skip to content

Commit 18c5ec7

Browse files
committed
fix bug in Event serialization
1 parent 25d8804 commit 18c5ec7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bindings/src/adaptors/primitives.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,12 +284,14 @@ impl Writeable for FFIEvents {
284284
for e in &self.events {
285285
match e {
286286
Event::FundingGenerationReady {ref temporary_channel_id, ref channel_value_satoshis, ref output_script, ref user_channel_id} => {
287+
0u8.write(writer)?;
287288
temporary_channel_id.write(writer)?;
288289
channel_value_satoshis.write(writer)?;
289290
output_script.write(writer)?;
290291
user_channel_id.write(writer)?
291292
}
292293
Event::PendingHTLCsForwardable { ref time_forwardable } => {
294+
5u8.write(writer)?;
293295
let milli = time_forwardable.as_millis() as u64;
294296
milli.write(writer)?;
295297
},

0 commit comments

Comments
 (0)