Skip to content

Commit ce4e20d

Browse files
committed
Add extra state-implies-inbound debug assertion in channel
1 parent dd3097c commit ce4e20d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lightning/src/ln/channel.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2477,6 +2477,7 @@ impl<Signer: Sign> Channel<Signer> {
24772477
let mut need_commitment = false;
24782478
if let &mut Some((_, ref mut update_state)) = &mut self.pending_update_fee {
24792479
if *update_state == FeeUpdateState::RemoteAnnounced {
2480+
debug_assert!(!self.is_outbound());
24802481
*update_state = FeeUpdateState::AwaitingRemoteRevokeToAnnounce;
24812482
need_commitment = true;
24822483
}

0 commit comments

Comments
 (0)