@@ -1340,6 +1340,8 @@ pub enum Event {
1340
1340
user_channel_id : u128 ,
1341
1341
/// The `node_id` of the channel counterparty.
1342
1342
counterparty_node_id : PublicKey ,
1343
+ /// The features that this channel will operate with.
1344
+ channel_type : ChannelTypeFeatures ,
1343
1345
} ,
1344
1346
/// Used to indicate that a channel that got past the initial handshake with the given `channel_id` is in the
1345
1347
/// process of closure. This includes previously opened channels, and channels that time out from not being funded.
@@ -1865,12 +1867,13 @@ impl Writeable for Event {
1865
1867
( 8 , former_temporary_channel_id, required) ,
1866
1868
} ) ;
1867
1869
} ,
1868
- & Event :: SpliceLocked { ref channel_id, ref user_channel_id, ref counterparty_node_id } => {
1870
+ & Event :: SpliceLocked { ref channel_id, ref user_channel_id, ref counterparty_node_id, ref channel_type } => {
1869
1871
45u8 . write ( writer) ?;
1870
1872
write_tlv_fields ! ( writer, {
1871
1873
( 0 , channel_id, required) ,
1872
1874
( 2 , user_channel_id, required) ,
1873
1875
( 4 , counterparty_node_id, required) ,
1876
+ ( 6 , channel_type, required) ,
1874
1877
} ) ;
1875
1878
} ,
1876
1879
// Note that, going forward, all new events must only write data inside of
@@ -2394,16 +2397,19 @@ impl MaybeReadable for Event {
2394
2397
let mut channel_id = ChannelId :: new_zero ( ) ;
2395
2398
let mut user_channel_id: u128 = 0 ;
2396
2399
let mut counterparty_node_id = RequiredWrapper ( None ) ;
2400
+ let mut channel_type = RequiredWrapper ( None ) ;
2397
2401
read_tlv_fields ! ( reader, {
2398
2402
( 0 , channel_id, required) ,
2399
2403
( 2 , user_channel_id, required) ,
2400
2404
( 4 , counterparty_node_id, required) ,
2405
+ ( 6 , channel_type, required) ,
2401
2406
} ) ;
2402
2407
2403
2408
Ok ( Some ( Event :: SpliceLocked {
2404
2409
channel_id,
2405
2410
user_channel_id,
2406
2411
counterparty_node_id : counterparty_node_id. 0 . unwrap ( ) ,
2412
+ channel_type : channel_type. 0 . unwrap ( )
2407
2413
} ) )
2408
2414
} ;
2409
2415
f ( )
0 commit comments