lightningd: add short_channel_id option to listpeerchannels.

Requested-by: @whitslack
Closes: https://github.com/ElementsProject/lightning/issues/8233
Changelog-Added: JSON-RPC: `listpeerchannels` now has a `short_channel_id` parameter for just listing a specific channel.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2025-04-15 17:09:29 +09:30
parent 5a3943f2e0
commit 8974375de8
10 changed files with 821 additions and 773 deletions

View File

@@ -21,6 +21,13 @@
"description": [
"If supplied, limits the channels to just the peer with the given ID, if it exists."
]
},
"short_channel_id": {
"added": "v25.05",
"type": "short_channel_id",
"description": [
"If supplied, limits the channels to just this short_channel_id (or local alias), if it exists. Cannot be used with 'id'."
]
}
}
},