Skip to content

Commit ad722c3

Browse files
committed
fixup! channeld: Code to implement splicing
Update RPC docs
1 parent 23af7c0 commit ad722c3

File tree

7 files changed

+28
-6
lines changed

7 files changed

+28
-6
lines changed

.msggen.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@
152152
"ListpeerchannelsChannelsState": {
153153
"AWAITING_UNILATERAL": 6,
154154
"CHANNELD_AWAITING_LOCKIN": 1,
155+
"CHANNELD_AWAITING_SPLICE": 11,
155156
"CHANNELD_NORMAL": 2,
156157
"CHANNELD_SHUTTING_DOWN": 3,
157158
"CLOSINGD_COMPLETE": 5,
@@ -1070,6 +1071,7 @@
10701071
"ListPeerChannels.channels[].inflight[].funding_txid": 1,
10711072
"ListPeerChannels.channels[].inflight[].our_funding_msat": 5,
10721073
"ListPeerChannels.channels[].inflight[].scratch_txid": 6,
1074+
"ListPeerChannels.channels[].inflight[].splice_amount": 7,
10731075
"ListPeerChannels.channels[].inflight[].total_funding_msat": 4
10741076
},
10751077
"ListpeerchannelsChannelsState_changes": {
@@ -1180,6 +1182,7 @@
11801182
"ListPeers.peers[].channels[].inflight[].funding_txid": 1,
11811183
"ListPeers.peers[].channels[].inflight[].our_funding_msat": 5,
11821184
"ListPeers.peers[].channels[].inflight[].scratch_txid": 6,
1185+
"ListPeers.peers[].channels[].inflight[].splice_amount": 7,
11831186
"ListPeers.peers[].channels[].inflight[].total_funding_msat": 4
11841187
},
11851188
"ListpeersPeersLog": {
@@ -3893,6 +3896,10 @@
38933896
"added": "v23.02",
38943897
"deprecated": false
38953898
},
3899+
"ListPeerChannels.channels[].inflight[].splice_amount": {
3900+
"added": "v23.08",
3901+
"deprecated": false
3902+
},
38963903
"ListPeerChannels.channels[].inflight[].total_funding_msat": {
38973904
"added": "v23.02",
38983905
"deprecated": false
@@ -4237,6 +4244,10 @@
42374244
"added": "pre-v0.10.1",
42384245
"deprecated": false
42394246
},
4247+
"ListPeers.peers[].channels[].inflight[].splice_amount": {
4248+
"added": "v23.08",
4249+
"deprecated": false
4250+
},
42404251
"ListPeers.peers[].channels[].inflight[].total_funding_msat": {
42414252
"added": "pre-v0.10.1",
42424253
"deprecated": false

cln-grpc/proto/node.proto

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

cln-grpc/src/convert.rs

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

cln-rpc/src/model.rs

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

contrib/pyln-testing/pyln/testing/grpc2py.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -739,6 +739,7 @@ def listpeerchannels_channels_inflight2py(m):
739739
"funding_outnum": m.funding_outnum, # PrimitiveField in generate_composite
740740
"feerate": m.feerate, # PrimitiveField in generate_composite
741741
"total_funding_msat": amount2msat(m.total_funding_msat), # PrimitiveField in generate_composite
742+
"splice_amount": m.splice_amount, # PrimitiveField in generate_composite
742743
"our_funding_msat": amount2msat(m.our_funding_msat), # PrimitiveField in generate_composite
743744
"scratch_txid": hexlify(m.scratch_txid), # PrimitiveField in generate_composite
744745
})

doc/lightning-listpeerchannels.7.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ On success, an object containing **channels** is returned. It is an array of ob
2626

2727
- **peer\_id** (pubkey): Node Public key
2828
- **peer\_connected** (boolean): A boolean flag that is set to true if the peer is online
29-
- **state** (string): the channel state, in particular "CHANNELD\_NORMAL" means the channel can be used normally (one of "OPENINGD", "CHANNELD\_AWAITING\_LOCKIN", "CHANNELD\_NORMAL", "CHANNELD\_SHUTTING\_DOWN", "CLOSINGD\_SIGEXCHANGE", "CLOSINGD\_COMPLETE", "AWAITING\_UNILATERAL", "FUNDING\_SPEND\_SEEN", "ONCHAIN", "DUALOPEND\_OPEN\_INIT", "DUALOPEND\_AWAITING\_LOCKIN")
29+
- **state** (string): the channel state, in particular "CHANNELD\_NORMAL" means the channel can be used normally (one of "OPENINGD", "CHANNELD\_AWAITING\_LOCKIN", "CHANNELD\_NORMAL", "CHANNELD\_SHUTTING\_DOWN", "CLOSINGD\_SIGEXCHANGE", "CLOSINGD\_COMPLETE", "AWAITING\_UNILATERAL", "FUNDING\_SPEND\_SEEN", "ONCHAIN", "DUALOPEND\_OPEN\_INIT", "DUALOPEND\_AWAITING\_LOCKIN", "CHANNELD\_AWAITING\_SPLICE")
3030
- **opener** (string): Who initiated the channel (one of "local", "remote")
3131
- **features** (array of strings):
3232
- BOLT #9 features which apply to this channel (one of "option\_static\_remotekey", "option\_anchor\_outputs", "option\_scid\_alias", "option\_zeroconf")
@@ -48,7 +48,7 @@ On success, an object containing **channels** is returned. It is an array of ob
4848
- **last\_feerate** (string, optional): For inflight opens, the most recent feerate used on the channel open
4949
- **next\_feerate** (string, optional): For inflight opens, the next feerate we'll use for the channel open
5050
- **next\_fee\_step** (u32, optional): For inflight opens, the next feerate step we'll use for the channel open
51-
- **inflight** (array of objects, optional): Current candidate funding transactions (only for dual-funding):
51+
- **inflight** (array of objects, optional): Current candidate funding transactions:
5252
- **funding\_txid** (txid): ID of the funding transaction
5353
- **funding\_outnum** (u32): The 0-based output number of the funding transaction which opens the channel
5454
- **feerate** (string): The feerate for this funding transaction in per-1000-weight, with "kpw" appended
@@ -195,4 +195,4 @@ Main web site: <https://github.com/ElementsProject/lightning> Lightning
195195
RFC site (BOLT \#9):
196196
<https://github.com/lightningnetwork/lightning-rfc/blob/master/09-features.md>
197197

198-
[comment]: # ( SHA256STAMP:37101a5410f47b0c5e23005ed9bd634de864c9b0871ffa71d4ca76c1b86f5737)
198+
[comment]: # ( SHA256STAMP:c748f9471cadc6d890f8989e193491e0cc8033e354b4fc988d1811c7f676f0a2)

doc/schemas/listpeerchannels.schema.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@
4141
"FUNDING_SPEND_SEEN",
4242
"ONCHAIN",
4343
"DUALOPEND_OPEN_INIT",
44-
"DUALOPEND_AWAITING_LOCKIN"
44+
"DUALOPEND_AWAITING_LOCKIN",
45+
"CHANNELD_AWAITING_SPLICE"
4546
],
4647
"description": "the channel state, in particular \"CHANNELD_NORMAL\" means the channel can be used normally"
4748
},
@@ -141,7 +142,7 @@
141142
},
142143
"inflight": {
143144
"type": "array",
144-
"description": "Current candidate funding transactions (only for dual-funding)",
145+
"description": "Current candidate funding transactions",
145146
"items": {
146147
"type": "object",
147148
"additionalProperties": false,
@@ -150,8 +151,8 @@
150151
"funding_outnum",
151152
"feerate",
152153
"total_funding_msat",
154+
"splice_amount",
153155
"our_funding_msat",
154-
"splice_amount",
155156
"scratch_txid"
156157
],
157158
"properties": {

0 commit comments

Comments
 (0)