Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lightning/src/ln/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1534,6 +1534,7 @@ impl<SP: Deref> Channel<SP> where
res
},
_ => {
self.phase = phase;
debug_assert!(!matches!(self.phase, ChannelPhase::Undefined));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, the debug_assert should have probably gone outside the match as is done in funding_signed. Guess it doesn't really matter since the other arms should be obviously correct.

Err(ChannelError::close("Got a commitment_signed message for an unfunded V1 channel!".into()))
}
Expand Down
Loading