Skip to content

Commit

Permalink
add CHANNELD_AWAITING_SPLICE state to cln-rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
daywalker90 authored and cdecker committed Sep 21, 2023
1 parent 9d94687 commit 10eecea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions cln-grpc/proto/primitives.proto
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ enum ChannelState {
Onchain = 8;
DualopendOpenInit = 9;
DualopendAwaitingLockin = 10;
ChanneldAwaitingSplice = 11;
}

enum HtlcState {
Expand Down
2 changes: 2 additions & 0 deletions cln-rpc/src/primitives.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ pub enum ChannelState {
ONCHAIN = 8,
DUALOPEND_OPEN_INIT = 9,
DUALOPEND_AWAITING_LOCKIN = 10,
CHANNELD_AWAITING_SPLICE = 11,
}

#[derive(Copy, Clone, Serialize, Deserialize, Debug)]
Expand Down Expand Up @@ -309,6 +310,7 @@ impl TryFrom<i32> for ChannelState {
8 => Ok(ChannelState::ONCHAIN),
9 => Ok(ChannelState::DUALOPEND_OPEN_INIT),
10 => Ok(ChannelState::DUALOPEND_AWAITING_LOCKIN),
11 => Ok(ChannelState::CHANNELD_AWAITING_SPLICE),
_ => Err(anyhow!("Invalid channel state {}", value)),
}
}
Expand Down

0 comments on commit 10eecea

Please sign in to comment.