lightningd: add withheld flag to listpeerchannels and listclosedchannels.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Added: JSON-RPC: `listpeerchannels` `funding` object `withheld` flag, and `listclosedchannels` `funding_withheld` flags, indicating fundchannel_complete was called with the `withheld` parameter true.
This commit is contained in:
Rusty Russell
2025-11-18 14:49:36 +10:30
parent ff433a17a8
commit 39349965a6
12 changed files with 867 additions and 791 deletions

View File

@@ -2075,8 +2075,10 @@
"ListClosedChannels.closedchannels[].funding_fee_paid_msat": 15,
"ListClosedChannels.closedchannels[].funding_fee_rcvd_msat": 16,
"ListClosedChannels.closedchannels[].funding_outnum": 13,
"ListClosedChannels.closedchannels[].funding_psbt": 26,
"ListClosedChannels.closedchannels[].funding_pushed_msat": 17,
"ListClosedChannels.closedchannels[].funding_txid": 12,
"ListClosedChannels.closedchannels[].funding_withheld": 27,
"ListClosedChannels.closedchannels[].last_commitment_fee_msat": 23,
"ListClosedChannels.closedchannels[].last_commitment_txid": 22,
"ListClosedChannels.closedchannels[].last_stable_connection": 25,
@@ -2844,8 +2846,10 @@
"ListPeerChannels.channels[].funding.fee_paid_msat": 4,
"ListPeerChannels.channels[].funding.fee_rcvd_msat": 5,
"ListPeerChannels.channels[].funding.local_funds_msat": 2,
"ListPeerChannels.channels[].funding.psbt": 6,
"ListPeerChannels.channels[].funding.pushed_msat": 1,
"ListPeerChannels.channels[].funding.remote_funds_msat": 3
"ListPeerChannels.channels[].funding.remote_funds_msat": 3,
"ListPeerChannels.channels[].funding.withheld": 7
},
"ListpeerchannelsChannelsHtlcs": {
"ListPeerChannels.channels[].htlcs[].amount_msat": 3,
@@ -8350,6 +8354,10 @@
"added": "pre-v0.10.1",
"deprecated": null
},
"ListClosedChannels.closedchannels[].funding_psbt": {
"added": "v25.12",
"deprecated": null
},
"ListClosedChannels.closedchannels[].funding_pushed_msat": {
"added": "pre-v0.10.1",
"deprecated": null
@@ -8358,6 +8366,10 @@
"added": "pre-v0.10.1",
"deprecated": null
},
"ListClosedChannels.closedchannels[].funding_withheld": {
"added": "v25.12",
"deprecated": null
},
"ListClosedChannels.closedchannels[].last_commitment_fee_msat": {
"added": "pre-v0.10.1",
"deprecated": null
@@ -10342,6 +10354,10 @@
"added": "v23.02",
"deprecated": null
},
"ListPeerChannels.channels[].funding.psbt": {
"added": "v25.12",
"deprecated": null
},
"ListPeerChannels.channels[].funding.pushed_msat": {
"added": "v23.02",
"deprecated": null
@@ -10350,6 +10366,10 @@
"added": "v23.02",
"deprecated": null
},
"ListPeerChannels.channels[].funding.withheld": {
"added": "v25.12",
"deprecated": null
},
"ListPeerChannels.channels[].funding_outnum": {
"added": "v23.02",
"deprecated": null