From 6cee9dc9bc8c6e6d4f3bec2839c54d7bcbada44c Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Tue, 5 Mar 2019 17:29:12 -0500 Subject: [PATCH] Additional asserts to include in fuzztesting (though may get hit?) --- lightning/src/ln/channel.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/lightning/src/ln/channel.rs b/lightning/src/ln/channel.rs index a4d8b89d1..d3767eb98 100644 --- a/lightning/src/ln/channel.rs +++ b/lightning/src/ln/channel.rs @@ -1632,6 +1632,7 @@ impl Channel { 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; -- 2.39.5