Skip to content

Commit 23b06fb

Browse files
committed
f drop/tweak debug assertions
1 parent e70f69e commit 23b06fb

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lightning/src/chain/channelmonitor.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1382,7 +1382,8 @@ impl<Signer: Sign> ChannelMonitor<Signer> {
13821382
Some((txid, event.confirmation_threshold()))
13831383
} else { None }
13841384
}) {
1385-
debug_assert!(us.funding_spend_confirmed.is_none(), "We have a pending funding spend awaiting confirmation, we can't have confirmed it already!");
1385+
debug_assert!(us.funding_spend_confirmed.is_none(),
1386+
"We have a pending funding spend awaiting anti-reorg confirmation, we can't have confirmed it already!");
13861387
confirmed_txid = Some(txid);
13871388
pending_commitment_tx_conf_thresh = Some(conf_thresh);
13881389
}
@@ -1461,10 +1462,8 @@ impl<Signer: Sign> ChannelMonitor<Signer> {
14611462
});
14621463
} else {
14631464
// If a counterparty commitment transaction is awaiting confirmation, we
1464-
// should also have a StaticPaymentOutput MaturingOutput event awaiting
1465-
// confirmation with the same height. Not having one implies something has
1466-
// gone terribly wrong with our commitment txid tracking.
1467-
debug_assert!(false);
1465+
// should either have a StaticPaymentOutput MaturingOutput event awaiting
1466+
// confirmation with the same height or have never met our dust amount.
14681467
}
14691468
}
14701469
found_commitment_tx = true;

0 commit comments

Comments
 (0)