lightningd: add created_index and updated_index to listhtlcs.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Added: JSON-RPC: `listhtlcs` has `created_index` and `updated_index` fields.
This commit is contained in:
Rusty Russell
2025-04-28 14:17:31 +09:30
parent 07c495e7fb
commit 7ba6263c48
14 changed files with 699 additions and 585 deletions

View File

@@ -33,6 +33,7 @@
"type": "object",
"additionalProperties": false,
"required": [
"created_index",
"short_channel_id",
"id",
"expiry",
@@ -48,6 +49,20 @@
"The channel that contains/contained the HTLC."
]
},
"created_index": {
"added": "v25.05",
"type": "u64",
"description": [
"1-based index indicating order this htlc was created in."
]
},
"updated_index": {
"added": "v25.05",
"type": "u64",
"description": [
"1-based index indicating order this htlc was changed (only present if it has changed since creation)."
]
},
"id": {
"type": "u64",
"description": [