lightningd: remove tx and txid fields from close response.

Changelog-Removed: JSON-RPC: `close` `tx` and `txid` field (use `txs` and `txids`), deprecated v24.11.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2026-01-20 14:56:27 +10:30
parent 592f8586f4
commit 983146791a
9 changed files with 1083 additions and 1155 deletions

View File

@@ -5908,26 +5908,6 @@
],
"properties": {
"type": {},
"tx": {
"type": "hex",
"deprecated": [
"v24.11",
"v25.12"
],
"description": [
"The raw bitcoin transaction used to close the channel (if it was open)."
]
},
"txid": {
"type": "txid",
"deprecated": [
"v24.11",
"v25.12"
],
"description": [
"The transaction id of the *tx* field."
]
},
"txs": {
"added": "v24.11",
"type": "array",

File diff suppressed because one or more lines are too long

View File

@@ -335,8 +335,6 @@ def close2py(m):
"txids": [hexlify(m.txids) for i in hexlify(m.txids)], # ArrayField[primitive] in generate_composite
"txs": [hexlify(m.txs) for i in hexlify(m.txs)], # ArrayField[primitive] in generate_composite
"type": str(m.item_type), # EnumField in generate_composite
"tx": hexlify(m.tx), # PrimitiveField in generate_composite
"txid": hexlify(m.txid), # PrimitiveField in generate_composite
})