Skip to content

Commit 872c037

Browse files
Rename short_to_id map to short_to_chan_info
As the map values are no longer only `channel_id`s, but also a `counterparty_node_id`s, the map is renamed to better correspond to whats actually stored in the map.
1 parent 908e898 commit 872c037

File tree

3 files changed

+65
-63
lines changed

3 files changed

+65
-63
lines changed

lightning/src/ln/channel.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4936,8 +4936,9 @@ impl<Signer: Sign> Channel<Signer> {
49364936
// the funding transaction is at least still in the mempool of most nodes).
49374937
//
49384938
// Note that ideally we wouldn't force-close if we see *any* reorg on a 1-conf or
4939-
// 0-conf channel, but not doing so may lead to the `ChannelManager::short_to_id` map
4940-
// being inconsistent, so we currently have to.
4939+
// 0-conf channel, but not doing so may lead to the
4940+
// `ChannelManager::short_to_chan_info` map being inconsistent, so we currently have
4941+
// to.
49414942
if funding_tx_confirmations == 0 && self.funding_tx_confirmed_in.is_some() {
49424943
let err_reason = format!("Funding transaction was un-confirmed. Locked at {} confs, now have {} confs.",
49434944
self.minimum_depth.unwrap(), funding_tx_confirmations);

0 commit comments

Comments
 (0)