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 a22ed83 commit 4fb838aCopy full SHA for 4fb838a
lightning/src/chain/channelmonitor.rs
@@ -1474,9 +1474,8 @@ impl<Signer: Sign> ChannelMonitor<Signer> {
1474
}
1475
let htlc_resolved = us.htlcs_resolved_on_chain.iter()
1476
.find(|v| if v.commitment_tx_output_idx == htlc_commitment_tx_output_idx {
1477
- if v.resolving_txid != confirmed_txid {
1478
- htlc_spend_txid_opt = v.resolving_txid;
1479
- }
+ debug_assert_ne!(v.resolving_txid, confirmed_txid);
+ htlc_spend_txid_opt = v.resolving_txid;
1480
true
1481
} else { false });
1482
debug_assert!(htlc_update_pending.is_some() as u8 + htlc_spend_pending.is_some() as u8 + htlc_resolved.is_some() as u8 <= 1);
0 commit comments