Skip to content

Commit

Permalink
Merge pull request #25 from crisdut/fix/open-channel
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky authored Feb 3, 2023
2 parents 778af87 + b08e3b5 commit 035ae25
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/channel/bolt/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -803,11 +803,16 @@ impl BoltChannel {

fn compose_accept_channel(&mut self) -> Result<AcceptChannel, Error> {
if self.stage != Lifecycle::Initial
&& self.stage != Lifecycle::Proposed
&& self.stage != Lifecycle::Reestablishing
{
return Err(Error::LifecycleMismatch {
current: self.stage,
required: &[Lifecycle::Initial, Lifecycle::Reestablishing],
required: &[
Lifecycle::Initial,
Lifecycle::Proposed,
Lifecycle::Reestablishing,
],
});
}

Expand Down

0 comments on commit 035ae25

Please sign in to comment.