Skip to content

Commit 05dd51d

Browse files
niftyneiddustin
authored andcommitted
fixup! fixup! channeld: Code to implement splicing
# Conflicts: # cln-grpc/src/convert.rs # doc/lightning-listpeerchannels.7.md
1 parent c804576 commit 05dd51d

File tree

13 files changed

+1179
-5
lines changed

13 files changed

+1179
-5
lines changed

.msggen.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1179,6 +1179,7 @@
11791179
"ListPeers.peers[].channels[].inflight[].funding_txid": 1,
11801180
"ListPeers.peers[].channels[].inflight[].our_funding_msat": 5,
11811181
"ListPeers.peers[].channels[].inflight[].scratch_txid": 6,
1182+
"ListPeers.peers[].channels[].inflight[].splice_amount": 7,
11821183
"ListPeers.peers[].channels[].inflight[].total_funding_msat": 4
11831184
},
11841185
"ListpeersPeersLog": {
@@ -4228,6 +4229,10 @@
42284229
"added": "pre-v0.10.1",
42294230
"deprecated": false
42304231
},
4232+
"ListPeers.peers[].channels[].inflight[].splice_amount": {
4233+
"added": "v23.05",
4234+
"deprecated": false
4235+
},
42314236
"ListPeers.peers[].channels[].inflight[].total_funding_msat": {
42324237
"added": "pre-v0.10.1",
42334238
"deprecated": false

cln-grpc/proto/node.proto

Lines changed: 1 addition & 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: 1152 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: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

contrib/msggen/msggen/gen/grpc.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
'u8': 'uint32', # Yep, this is the smallest integer type in grpc...
2323
'u32': 'uint32',
2424
'u64': 'uint64',
25-
's64': 'int64',
2625
'u16': 'uint32', # Yeah, I know...
2726
'f32': 'float',
2827
'integer': 'sint64',

contrib/msggen/msggen/gen/grpc2py.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def __init__(self, dest: TextIO):
4040
'u16': "m.{name}",
4141
'u32': "m.{name}",
4242
'u64': "m.{name}",
43-
's64': "m.{name}",
43+
'integer': "m.{name}",
4444
'boolean': "m.{name}",
4545
'short_channel_id': "m.{name}",
4646
'msat': "amount2msat(m.{name})",

contrib/msggen/msggen/gen/rust.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
'outputdesc': 'OutputDesc',
3636
'hash': 'Sha256',
3737
'secret': 'Secret',
38+
'integer': 'i64',
3839
}
3940

4041
header = f"""#![allow(non_camel_case_types)]

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ def listpeers_peers_channels_inflight2py(m):
9191
"feerate": m.feerate, # PrimitiveField in generate_composite
9292
"total_funding_msat": amount2msat(m.total_funding_msat), # PrimitiveField in generate_composite
9393
"our_funding_msat": amount2msat(m.our_funding_msat), # PrimitiveField in generate_composite
94+
"splice_amount": m.splice_amount, # PrimitiveField in generate_composite
9495
"scratch_txid": hexlify(m.scratch_txid), # PrimitiveField in generate_composite
9596
})
9697

doc/lightning-listpeerchannels.7.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ On success, an object containing **channels** is returned. It is an array of ob
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
5555
- **total\_funding\_msat** (msat): total amount in the channel
56+
- **splice\_amount** (integer): The amouont of sats we're splicing in or out
5657
- **our\_funding\_msat** (msat): amount we have in the channel
5758
- **scratch\_txid** (txid): The commitment transaction txid we would use if we went onchain now
5859
- **close\_to** (hex, optional): scriptPubkey which we have to close to if we mutual close
@@ -194,4 +195,4 @@ Main web site: <https://github.com/ElementsProject/lightning> Lightning
194195
RFC site (BOLT \#9):
195196
<https://github.com/lightningnetwork/lightning-rfc/blob/master/09-features.md>
196197

197-
[comment]: # ( SHA256STAMP:005c109a25f91eabf18e2003a4c83e305ca6b4a604999ceeef6ca3f0ee4b0006)
198+
[comment]: # ( SHA256STAMP:78229c9896b65ad304ec8ed928a38ac54df9d8adb00d11a26169d9f9f2957798)

doc/lightning-listpeers.7.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ On success, an object containing **peers** is returned. It is an array of objec
8989
- **feerate** (string): The feerate for this funding transaction in per-1000-weight, with "kpw" appended
9090
- **total\_funding\_msat** (msat): total amount in the channel
9191
- **our\_funding\_msat** (msat): amount we have in the channel
92+
- **splice\_amount** (integer): The amouont of sats we're splicing in or out
9293
- **scratch\_txid** (txid): The commitment transaction txid we would use if we went onchain now
9394
- **close\_to** (hex, optional): scriptPubkey which we have to close to if we mutual close
9495
- **private** (boolean, optional): if False, we will not announce this channel
@@ -398,4 +399,4 @@ Main web site: <https://github.com/ElementsProject/lightning> Lightning
398399
RFC site (BOLT \#9):
399400
<https://github.com/lightning/bolts/blob/master/09-features.md>
400401

401-
[comment]: # ( SHA256STAMP:c0d0cc8f083168fd76caa2430a7c7d27d72a5273c55fb14b0efcbcb7a87274f4)
402+
[comment]: # ( SHA256STAMP:0b0ac0a62d7e1afcfda6ba1e09af45160c6991d6546da44d1b2a3c3c97a9c51e)

doc/lightning-sql.7.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ The following tables are currently supported:
268268
- `funding_outnum` (type `u32`, sqltype `INTEGER`)
269269
- `feerate` (type `string`, sqltype `TEXT`)
270270
- `total_funding_msat` (type `msat`, sqltype `INTEGER`)
271+
- `splice_amount` (type `integer`, sqltype `INTEGER`)
271272
- `our_funding_msat` (type `msat`, sqltype `INTEGER`)
272273
- `scratch_txid` (type `txid`, sqltype `BLOB`)
273274
- `close_to` (type `hex`, sqltype `BLOB`)
@@ -514,4 +515,4 @@ RESOURCES
514515
---------
515516

516517
Main web site: <https://github.com/ElementsProject/lightning>
517-
[comment]: # ( SHA256STAMP:3eb4e024a1e1a4b40460b48b835354514456558797b8f8ce3c76dcbb9ca79dab)
518+
[comment]: # ( SHA256STAMP:9d73854671c715117777702f7f13912ac31ca2ddcde46ffa80f79def1de7475d)

doc/schemas/listpeerchannels.schema.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@
151151
"feerate",
152152
"total_funding_msat",
153153
"our_funding_msat",
154+
"splice_amount",
154155
"scratch_txid"
155156
],
156157
"properties": {
@@ -170,6 +171,10 @@
170171
"type": "msat",
171172
"description": "total amount in the channel"
172173
},
174+
"splice_amount": {
175+
"type": "integer",
176+
"description": "The amouont of sats we're splicing in or out"
177+
},
173178
"our_funding_msat": {
174179
"type": "msat",
175180
"description": "amount we have in the channel"

doc/schemas/listpeers.schema.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@
273273
"feerate",
274274
"total_funding_msat",
275275
"our_funding_msat",
276+
"splice_amount",
276277
"scratch_txid"
277278
],
278279
"properties": {
@@ -296,6 +297,10 @@
296297
"type": "msat",
297298
"description": "amount we have in the channel"
298299
},
300+
"splice_amount": {
301+
"type": "integer",
302+
"description": "The amouont of sats we're splicing in or out"
303+
},
299304
"scratch_txid": {
300305
"type": "txid",
301306
"description": "The commitment transaction txid we would use if we went onchain now"

0 commit comments

Comments
 (0)