File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -350,7 +350,7 @@ impl Writeable for Event {
350
350
} ) ;
351
351
} ,
352
352
& Event :: DiscardFunding { ref channel_id, ref transaction } => {
353
- 12u8 . write ( writer) ?;
353
+ 11u8 . write ( writer) ?;
354
354
write_tlv_fields ! ( writer, {
355
355
( 0 , channel_id, required) ,
356
356
( 2 , transaction, option)
@@ -487,6 +487,16 @@ impl MaybeReadable for Event {
487
487
if reason. is_none ( ) { return Ok ( None ) ; }
488
488
Ok ( Some ( Event :: ChannelClosed { channel_id, reason : reason. unwrap ( ) } ) )
489
489
} ,
490
+ 11u8 => {
491
+ let mut channel_id = [ 0 ; 32 ] ;
492
+ let mut transaction = None ;
493
+ read_tlv_fields ! ( reader, {
494
+ ( 0 , channel_id, required) ,
495
+ ( 2 , transaction, ignorable) ,
496
+ } ) ;
497
+ if transaction. is_none ( ) { return Ok ( None ) ; }
498
+ Ok ( Some ( Event :: DiscardFunding { channel_id, transaction } ) )
499
+ } ,
490
500
// Versions prior to 0.0.100 did not ignore odd types, instead returning InvalidValue.
491
501
// Version 0.0.100 failed to properly ignore odd types, possibly resulting in corrupt
492
502
// reads.
You can’t perform that action at this time.
0 commit comments