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 0acaca7 commit 5fa8a7cCopy full SHA for 5fa8a7c
lightning/src/chain/channelmonitor.rs
@@ -1486,9 +1486,8 @@ impl<Signer: Sign> ChannelMonitor<Signer> {
1486
}
1487
let htlc_resolved = us.htlcs_resolved_on_chain.iter()
1488
.find(|v| if v.commitment_tx_output_idx == htlc_commitment_tx_output_idx {
1489
- if v.resolving_txid != confirmed_txid {
1490
- htlc_spend_txid_opt = v.resolving_txid;
1491
- }
+ debug_assert_ne!(v.resolving_txid, confirmed_txid);
+ htlc_spend_txid_opt = v.resolving_txid;
1492
true
1493
} else { false });
1494
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