Skip to content

Commit fda3819

Browse files
authored
Merge pull request #1542 from ViktorTigerstrom/2022-06-prepare-maps-for-channels-per-peer
Preparations for storing channels per peer
2 parents 5c06d1d + fa7f170 commit fda3819

File tree

3 files changed

+233
-75
lines changed

3 files changed

+233
-75
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)