Skip to content

Commit

Permalink
s/ChannelEstablished/ChannelOpened/
Browse files Browse the repository at this point in the history
  • Loading branch information
tnull committed Sep 28, 2022
1 parent dbfedef commit 33dbc0c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lightning/src/ln/channelmanager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4660,7 +4660,7 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
}

let mut pending_events = self.pending_events.lock().unwrap();
pending_events.push(events::Event::ChannelEstablished {
pending_events.push(events::Event::ChannelOpened {
channel_id: chan.get().channel_id(),
user_channel_id: chan.get().get_user_id(),
counterparty_node_id: chan.get().get_counterparty_node_id(),
Expand Down Expand Up @@ -5817,7 +5817,7 @@ where
}

let mut pending_events = self.pending_events.lock().unwrap();
pending_events.push(events::Event::ChannelEstablished {
pending_events.push(events::Event::ChannelOpened {
channel_id: channel.channel_id(),
user_channel_id: channel.get_user_id(),
counterparty_node_id: channel.get_counterparty_node_id(),
Expand Down
8 changes: 4 additions & 4 deletions lightning/src/util/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -505,11 +505,11 @@ pub enum Event {
/// transaction.
claim_from_onchain_tx: bool,
},
/// Used to indicate that a previously opened channel with the given `channel_id` is ready to
/// Used to indicate that a channel with the given `channel_id` is ready to
/// be used. This event is emitted either when the funding transaction has been confirmed
/// on-chain, or, in case of a 0conf channel, when both parties have confirmed the channel
/// establishment.
ChannelEstablished {
ChannelOpened {
/// The channel_id of the channel that is ready.
channel_id: [u8; 32],
/// The `user_channel_id` value passed in to [`ChannelManager::create_channel`] for outbound
Expand Down Expand Up @@ -774,7 +774,7 @@ impl Writeable for Event {
(2, failed_next_destination, required),
})
},
&Event::ChannelEstablished { ref channel_id, ref user_channel_id, ref counterparty_node_id, ref channel_type } => {
&Event::ChannelOpened { ref channel_id, ref user_channel_id, ref counterparty_node_id, ref channel_type } => {
27u8.write(writer)?;
write_tlv_fields!(writer, {
(0, channel_id, required),
Expand Down Expand Up @@ -1076,7 +1076,7 @@ impl MaybeReadable for Event {
(3, channel_type_opt, option),
});

Ok(Some(Event::ChannelEstablished { channel_id,
Ok(Some(Event::ChannelOpened { channel_id,
user_channel_id,
counterparty_node_id: counterparty_node_id_opt.unwrap(),
channel_type: channel_type_opt.unwrap()
Expand Down

0 comments on commit 33dbc0c

Please sign in to comment.