From e854d4046bcf5563030dd79230da7f6d81d50bfe Mon Sep 17 00:00:00 2001 From: daywalker90 Date: Thu, 31 Aug 2023 22:51:22 +0200 Subject: [PATCH] add CHANNELD_AWAITING_SPLICE state to cln-rpc --- cln-grpc/proto/primitives.proto | 1 + cln-rpc/src/primitives.rs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/cln-grpc/proto/primitives.proto b/cln-grpc/proto/primitives.proto index 96411b282015..64a6cc9a3a01 100644 --- a/cln-grpc/proto/primitives.proto +++ b/cln-grpc/proto/primitives.proto @@ -36,6 +36,7 @@ enum ChannelState { Onchain = 8; DualopendOpenInit = 9; DualopendAwaitingLockin = 10; + ChanneldAwaitingSplice = 11; } enum HtlcState { diff --git a/cln-rpc/src/primitives.rs b/cln-rpc/src/primitives.rs index a55affe958de..479ce23e7bfd 100644 --- a/cln-rpc/src/primitives.rs +++ b/cln-rpc/src/primitives.rs @@ -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)] @@ -309,6 +310,7 @@ impl TryFrom 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)), } }