lnrpc: deprecate OutgoingChanId

In this commit we deprecate the OutgoingChanId field in the
QueryRoutes in favor of OutgoingChanIds.
This commit is contained in:
Abdullahi Yunus committed 2025-07-15 18:42:56 +01:00
1 parent 3c40233f83
commit 7faf20bd56
3 files changed
+1744 -1741

No files matched your search

+1739 -1736
View File
File diff suppressed because it is too large. Load diff
+3 -3
View File
@@ -3158,10 +3158,10 @@ message QueryRoutesRequest {
map<uint64, bytes> dest_custom_records = 13; map<uint64, bytes> dest_custom_records = 13;
/* /*
The channel id of the channel that must be taken to the first hop. If zero, Deprecated, use outgoing_chan_ids. The channel id of the channel that must
any channel may be used. be taken to the first hop. If zero, any channel may be used.
*/ */
uint64 outgoing_chan_id = 14 [jstype = JS_STRING]; uint64 outgoing_chan_id = 14 [jstype = JS_STRING, deprecated = true];
/* /*
The pubkey of the last hop of the route. If empty, any hop may be used. The pubkey of the last hop of the route. If empty, any hop may be used.
+2 -2
View File
@@ -1459,7 +1459,7 @@
}, },
{ {
"name": "outgoing_chan_id", "name": "outgoing_chan_id",
"description": "The channel id of the channel that must be taken to the first hop. If zero,\nany channel may be used.", "description": "Deprecated, use outgoing_chan_ids. The channel id of the channel that must\nbe taken to the first hop. If zero, any channel may be used.",
"in": "query", "in": "query",
"required": false, "required": false,
"type": "string", "type": "string",
@@ -1641,7 +1641,7 @@
"outgoing_chan_id": { "outgoing_chan_id": {
"type": "string", "type": "string",
"format": "uint64", "format": "uint64",
"description": "The channel id of the channel that must be taken to the first hop. If zero,\nany channel may be used." "description": "Deprecated, use outgoing_chan_ids. The channel id of the channel that must\nbe taken to the first hop. If zero, any channel may be used."
}, },
"last_hop_pubkey": { "last_hop_pubkey": {
"type": "string", "type": "string",