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 de2005a commit c5763dbCopy full SHA for c5763db
lightning/src/chain/channelmonitor.rs
@@ -3851,6 +3851,9 @@ impl<Signer: EcdsaChannelSigner> ChannelMonitorImpl<Signer> {
3851
self.outputs_to_watch.remove(&funding.funding_txid());
3852
}
3853
if let Some((alternative_funding_txid, _)) = self.alternative_funding_confirmed.take() {
3854
+ // In exceedingly rare cases, it's possible there was a reorg that caused a potential funding to
3855
+ // be locked in that this `ChannelMonitor` has not yet seen. Thus, we avoid a runtime assertion
3856
+ // and only assert in debug mode.
3857
debug_assert_eq!(alternative_funding_txid, new_funding_txid);
3858
3859
0 commit comments