We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a358fb commit 23e04d5Copy full SHA for 23e04d5
lightning/src/ln/channel.rs
@@ -3666,6 +3666,10 @@ impl<Signer: Sign> Channel<Signer> {
3666
funding_tx_confirmations = 0;
3667
}
3668
3669
+ // If we've sent funding_locked (or have both sent and received funding_locked), and
3670
+ // the funding transaction's confirmation count has dipped below minimum_depth / 2,
3671
+ // close the channel and hope we can get the latest state on chain (because presumably
3672
+ // the funding transaction is at least still in the mempool of most nodes).
3673
if funding_tx_confirmations < self.minimum_depth as i64 / 2 {
3674
return Err(msgs::ErrorMessage {
3675
channel_id: self.channel_id(),
0 commit comments