projects
/
rust-lightning
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
741cffc
)
Additional asserts to include in fuzztesting (though may get hit?)
author
Matt Corallo
<git@bluematt.me>
Tue, 5 Mar 2019 22:29:12 +0000
(17:29 -0500)
committer
Matt Corallo
<git@bluematt.me>
Mon, 25 May 2020 19:36:58 +0000
(15:36 -0400)
lightning/src/ln/channel.rs
patch
|
blob
|
history
diff --git
a/lightning/src/ln/channel.rs
b/lightning/src/ln/channel.rs
index 65fb9919760e94e7fd65e07fb31b02dcc2cb72e9..e539490951d9b2e9cd780c2189c1e76775ae7586 100644
(file)
--- a/
lightning/src/ln/channel.rs
+++ b/
lightning/src/ln/channel.rs
@@
-1708,6
+1708,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 {
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;
removed_outbound_total_msat += htlc.amount_msat;
} else if let OutboundHTLCState::AwaitingRemovedRemoteRevoke(None) = htlc.state {
removed_outbound_total_msat += htlc.amount_msat;