Skip to content

Commit 2798b4b

Browse files
JssDWtShahanaFarooqui
authored andcommitted
cln-grpc: add anchors/even to primitives
The `anchors/even` channel type was missing from the grpc bindings. It is now the default channel type, so `fundchannel` over grpc fails with: ``` Failed to deserialize response : unknown variant `anchors/even`, expected one of `static_remotekey/even`, `anchor_outputs/even`, `anchors_zero_fee_htlc_tx/even`, `scid_alias/even`, `zeroconf/even` ``` Changelog-Changed: Channel type `anchors/even` was added to the grpc bindings.
1 parent aba67a7 commit 2798b4b

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

cln-grpc/proto/primitives.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ enum ChannelTypeName {
127127
anchors_zero_fee_htlc_tx_even = 2;
128128
scid_alias_even = 3;
129129
zeroconf_even = 4;
130+
anchors_even = 5;
130131
}
131132

132133
enum AutocleanSubsystem {

cln-rpc/src/primitives.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ pub enum ChannelTypeName {
6767
SCID_ALIAS_EVEN = 3,
6868
#[serde(rename = "zeroconf/even")]
6969
ZEROCONF_EVEN = 4,
70+
#[serde(rename = "anchors/even")]
71+
ANCHORS_EVEN = 5,
7072
}
7173

7274
#[derive(Copy, Clone, Serialize, Deserialize, Debug)]
@@ -407,6 +409,7 @@ impl From<i32> for ChannelTypeName {
407409
2 => ChannelTypeName::ANCHORS_ZERO_FEE_HTLC_TX_EVEN,
408410
3 => ChannelTypeName::SCID_ALIAS_EVEN,
409411
4 => ChannelTypeName::ZEROCONF_EVEN,
412+
5 => ChannelTypeName::ANCHORS_EVEN,
410413
o => panic!("Unmapped ChannelTypeName {}", o),
411414
}
412415
}
@@ -420,6 +423,7 @@ impl From<ChannelTypeName> for i32 {
420423
ChannelTypeName::ANCHORS_ZERO_FEE_HTLC_TX_EVEN => 2,
421424
ChannelTypeName::SCID_ALIAS_EVEN => 3,
422425
ChannelTypeName::ZEROCONF_EVEN => 4,
426+
ChannelTypeName::ANCHORS_EVEN => 5,
423427
}
424428
}
425429
}

contrib/pyln-grpc-proto/pyln/grpc/primitives_pb2.py

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)