Skip to content

Commit 23e04d5

Browse files
committed
f comment about reorg-closure
1 parent 4a358fb commit 23e04d5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lightning/src/ln/channel.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3666,6 +3666,10 @@ impl<Signer: Sign> Channel<Signer> {
36663666
funding_tx_confirmations = 0;
36673667
}
36683668

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).
36693673
if funding_tx_confirmations < self.minimum_depth as i64 / 2 {
36703674
return Err(msgs::ErrorMessage {
36713675
channel_id: self.channel_id(),

0 commit comments

Comments
 (0)