mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-19 05:44:12 +01:00
msggen: Add two missing fields to the listpays
schema
The fields were missing because they weren't annotated with a type and a description. Adding those fixes them. Changelog-Fixed: msggen: `listpays` now includes the missing `amount_msat` and `amount_sent_msat` fields No-schema-diff-check: fields were always there, just undocumented!
This commit is contained in:
parent
7915a9d678
commit
7b8ea7f60a
16
.msggen.json
16
.msggen.json
@ -3810,6 +3810,14 @@
|
||||
"added": "pre-v0.10.1",
|
||||
"deprecated": null
|
||||
},
|
||||
"ListPays.amount_msat": {
|
||||
"added": "pre-v0.10.1",
|
||||
"deprecated": false
|
||||
},
|
||||
"ListPays.amount_sent_msat": {
|
||||
"added": "pre-v0.10.1",
|
||||
"deprecated": false
|
||||
},
|
||||
"ListPays.bolt11": {
|
||||
"added": "pre-v0.10.1",
|
||||
"deprecated": false
|
||||
@ -3822,6 +3830,14 @@
|
||||
"added": "pre-v0.10.1",
|
||||
"deprecated": false
|
||||
},
|
||||
"ListPays.pays[].amount_msat": {
|
||||
"added": "pre-v0.10.1",
|
||||
"deprecated": false
|
||||
},
|
||||
"ListPays.pays[].amount_sent_msat": {
|
||||
"added": "pre-v0.10.1",
|
||||
"deprecated": false
|
||||
},
|
||||
"ListPays.pays[].bolt11": {
|
||||
"added": "pre-v0.10.1",
|
||||
"deprecated": false
|
||||
|
BIN
cln-grpc/proto/node.proto
generated
BIN
cln-grpc/proto/node.proto
generated
Binary file not shown.
BIN
cln-grpc/src/convert.rs
generated
BIN
cln-grpc/src/convert.rs
generated
Binary file not shown.
BIN
cln-rpc/src/model.rs
generated
BIN
cln-rpc/src/model.rs
generated
Binary file not shown.
File diff suppressed because one or more lines are too long
@ -1277,6 +1277,8 @@ def listpays_pays2py(m):
|
||||
"bolt11": m.bolt11, # PrimitiveField in generate_composite
|
||||
"description": m.description, # PrimitiveField in generate_composite
|
||||
"bolt12": m.bolt12, # PrimitiveField in generate_composite
|
||||
"amount_msat": amount2msat(m.amount_msat), # PrimitiveField in generate_composite
|
||||
"amount_sent_msat": amount2msat(m.amount_sent_msat), # PrimitiveField in generate_composite
|
||||
"preimage": hexlify(m.preimage), # PrimitiveField in generate_composite
|
||||
"number_of_parts": m.number_of_parts, # PrimitiveField in generate_composite
|
||||
"erroronion": hexlify(m.erroronion), # PrimitiveField in generate_composite
|
||||
|
@ -31,7 +31,9 @@ On success, an object containing **pays** is returned. It is an array of object
|
||||
|
||||
If **status** is "complete":
|
||||
|
||||
- **amount\_sent\_msat** (msat): The amount of millisatoshi we sent in order to pay (may include fees and not match amount\_msat)
|
||||
- **preimage** (secret): proof of payment
|
||||
- **amount\_msat** (msat, optional): The amount of millisatoshi we intended to send to the destination
|
||||
- **number\_of\_parts** (u64, optional): the number of parts for a successful payment (only if more than one).
|
||||
|
||||
If **status** is "failed":
|
||||
@ -57,4 +59,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:716bcbf01d946c6e4da0bd2f6817c34e6471a1fcd2f0f388ce47984271285c72)
|
||||
[comment]: # ( SHA256STAMP:1485c07b6a62b67169675ecd1e6e42f34fb371c2eb687adf7451ad1bec5dcc50)
|
||||
|
@ -87,8 +87,14 @@
|
||||
"bolt11": {},
|
||||
"description": {},
|
||||
"bolt12": {},
|
||||
"amount_msat": {},
|
||||
"amount_sent_msat": {},
|
||||
"amount_msat": {
|
||||
"type": "msat",
|
||||
"description": "The amount of millisatoshi we intended to send to the destination"
|
||||
},
|
||||
"amount_sent_msat": {
|
||||
"type": "msat",
|
||||
"description": "The amount of millisatoshi we sent in order to pay (may include fees and not match amount_msat)"
|
||||
},
|
||||
"preimage": {
|
||||
"type": "secret",
|
||||
"description": "proof of payment"
|
||||
|
Loading…
Reference in New Issue
Block a user