Skip to content

Commit

Permalink
Merge pull request #1542 from ViktorTigerstrom/2022-06-prepare-maps-f…
Browse files Browse the repository at this point in the history
…or-channels-per-peer

Preparations for storing channels per peer
  • Loading branch information
TheBlueMatt committed Jul 13, 2022
2 parents 5c06d1d + fa7f170 commit fda3819
Show file tree
Hide file tree
Showing 3 changed files with 233 additions and 75 deletions.
5 changes: 3 additions & 2 deletions lightning/src/ln/channel.rs
Expand Up @@ -4936,8 +4936,9 @@ impl<Signer: Sign> Channel<Signer> {
// the funding transaction is at least still in the mempool of most nodes).
//
// Note that ideally we wouldn't force-close if we see *any* reorg on a 1-conf or
// 0-conf channel, but not doing so may lead to the `ChannelManager::short_to_id` map
// being inconsistent, so we currently have to.
// 0-conf channel, but not doing so may lead to the
// `ChannelManager::short_to_chan_info` map being inconsistent, so we currently have
// to.
if funding_tx_confirmations == 0 && self.funding_tx_confirmed_in.is_some() {
let err_reason = format!("Funding transaction was un-confirmed. Locked at {} confs, now have {} confs.",
self.minimum_depth.unwrap(), funding_tx_confirmations);
Expand Down

0 comments on commit fda3819

Please sign in to comment.