@@ -505,11 +505,11 @@ pub enum Event {
505
505
/// transaction.
506
506
claim_from_onchain_tx : bool ,
507
507
} ,
508
- /// Used to indicate that a previously opened channel with the given `channel_id` is ready to
508
+ /// Used to indicate that a channel with the given `channel_id` is ready to
509
509
/// be used. This event is emitted either when the funding transaction has been confirmed
510
510
/// on-chain, or, in case of a 0conf channel, when both parties have confirmed the channel
511
511
/// establishment.
512
- ChannelEstablished {
512
+ ChannelOpened {
513
513
/// The channel_id of the channel that is ready.
514
514
channel_id : [ u8 ; 32 ] ,
515
515
/// The `user_channel_id` value passed in to [`ChannelManager::create_channel`] for outbound
@@ -774,7 +774,7 @@ impl Writeable for Event {
774
774
( 2 , failed_next_destination, required) ,
775
775
} )
776
776
} ,
777
- & Event :: ChannelEstablished { ref channel_id, ref user_channel_id, ref counterparty_node_id, ref channel_type } => {
777
+ & Event :: ChannelOpened { ref channel_id, ref user_channel_id, ref counterparty_node_id, ref channel_type } => {
778
778
27u8 . write ( writer) ?;
779
779
write_tlv_fields ! ( writer, {
780
780
( 0 , channel_id, required) ,
@@ -1076,7 +1076,7 @@ impl MaybeReadable for Event {
1076
1076
( 3 , channel_type_opt, option) ,
1077
1077
} ) ;
1078
1078
1079
- Ok ( Some ( Event :: ChannelEstablished { channel_id,
1079
+ Ok ( Some ( Event :: ChannelOpened { channel_id,
1080
1080
user_channel_id,
1081
1081
counterparty_node_id : counterparty_node_id_opt. unwrap ( ) ,
1082
1082
channel_type : channel_type_opt. unwrap ( )
0 commit comments