]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Additional asserts to include in fuzztesting (though may get hit?)
authorMatt Corallo <git@bluematt.me>
Tue, 5 Mar 2019 22:29:12 +0000 (17:29 -0500)
committerMatt Corallo <git@bluematt.me>
Mon, 3 Feb 2020 02:38:54 +0000 (21:38 -0500)
lightning/src/ln/channel.rs

index a4d8b89d1f51c941f7c06eec62a0647540d81c94..d3767eb987f469e5e9bf2fe48c9325fd0a1f15a3 100644 (file)
@@ -1632,6 +1632,7 @@ impl<ChanSigner: ChannelKeys> Channel<ChanSigner> {
                let mut removed_outbound_total_msat = 0;
                for ref htlc in self.pending_outbound_htlcs.iter() {
                        if let OutboundHTLCState::AwaitingRemoteRevokeToRemove(None) = htlc.state {
+debug_assert!(false, "This should be triggerable, and we should add a test case that does so!");
                                removed_outbound_total_msat += htlc.amount_msat;
                        } else if let OutboundHTLCState::AwaitingRemovedRemoteRevoke(None) = htlc.state {
                                removed_outbound_total_msat += htlc.amount_msat;