Skip to content

Commit 20021f6

Browse files
committed
proto: remove orphan SendToRouteResponse and outgoing_chan_id fields
Drop the now-orphan routerrpc.SendToRouteResponse message that was only referenced by the deleted routerrpc.SendToRoute RPC. Also remove the deprecated outgoing_chan_id field from lnrpc.QueryRoutesRequest (tag 14) and routerrpc.SendPaymentRequest (tag 8); their tag numbers are now reserved. Callers must use the multi-channel outgoing_chan_ids field introduced in 0.20. Drop the compat fallback in router_backend.go that previously consumed the field, and regenerate the affected pb.go/swagger artifacts.
1 parent 513c8f0 commit 20021f6

8 files changed

Lines changed: 281 additions & 424 deletions

File tree

lnrpc/lightning.pb.go

Lines changed: 3 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lnrpc/lightning.proto

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3141,11 +3141,7 @@ message QueryRoutesRequest {
31413141
*/
31423142
map<uint64, bytes> dest_custom_records = 13;
31433143

3144-
/*
3145-
Deprecated, use outgoing_chan_ids. The channel id of the channel that must
3146-
be taken to the first hop. If zero, any channel may be used.
3147-
*/
3148-
uint64 outgoing_chan_id = 14 [jstype = JS_STRING, deprecated = true];
3144+
reserved 14;
31493145

31503146
/*
31513147
The pubkey of the last hop of the route. If empty, any hop may be used.

lnrpc/lightning.swagger.json

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1357,14 +1357,6 @@
13571357
"required": false,
13581358
"type": "string"
13591359
},
1360-
{
1361-
"name": "outgoing_chan_id",
1362-
"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.",
1363-
"in": "query",
1364-
"required": false,
1365-
"type": "string",
1366-
"format": "uint64"
1367-
},
13681360
{
13691361
"name": "last_hop_pubkey",
13701362
"description": "The pubkey of the last hop of the route. If empty, any hop may be used.",
@@ -1538,11 +1530,6 @@
15381530
},
15391531
"description": "An optional field that can be used to pass an arbitrary set of TLV records\nto a peer which understands the new records. This can be used to pass\napplication specific data during the payment attempt. If the destination\ndoes not support the specified records, an error will be returned.\nRecord types are required to be in the custom range \u003e= 65536. When using\nREST, the values must be encoded as base64."
15401532
},
1541-
"outgoing_chan_id": {
1542-
"type": "string",
1543-
"format": "uint64",
1544-
"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."
1545-
},
15461533
"last_hop_pubkey": {
15471534
"type": "string",
15481535
"format": "byte",

0 commit comments

Comments
 (0)