@@ -1467,8 +1467,11 @@ message QueryRoutesRequest {
14671467 /// The amount to send expressed in satoshis
14681468 int64 amt = 2 ;
14691469
1470- /// The max number of routes to return.
1471- int32 num_routes = 3 ;
1470+ /**
1471+ Deprecated. The max number of routes to return. In the future, QueryRoutes
1472+ will only return a single route.
1473+ */
1474+ int32 num_routes = 3 [deprecated = true ];
14721475
14731476 /// An optional CLTV delta from the current height that should be used for the timelock of the final hop
14741477 int32 final_cltv_delta = 4 ;
@@ -1480,7 +1483,37 @@ message QueryRoutesRequest {
14801483 send the payment.
14811484 */
14821485 FeeLimit fee_limit = 5 ;
1486+
1487+ /**
1488+ A list of nodes to ignore during path finding.
1489+ */
1490+ repeated bytes ignored_nodes = 6 ;
1491+
1492+ /**
1493+ A list of edges to ignore during path finding.
1494+ */
1495+ repeated EdgeLocator ignored_edges = 7 ;
1496+
1497+ /**
1498+ The source node where the request route should originated from. If empty,
1499+ self is assumed.
1500+ */
1501+ string source_pub_key = 8 ;
1502+ }
1503+
1504+ message EdgeLocator {
1505+ /// The short channel id of this edge.
1506+ uint64 channel_id = 1 ;
1507+
1508+ /**
1509+ The direction of this edge. If direction_reverse is false, the direction
1510+ of this edge is from the channel endpoint with the lexicographically smaller
1511+ pub key to the endpoint with the larger pub key. If direction_reverse is
1512+ is true, the edge goes the other way.
1513+ */
1514+ bool direction_reverse = 2 ;
14831515}
1516+
14841517message QueryRoutesResponse {
14851518 repeated Route routes = 1 [json_name = "routes" ];
14861519}
0 commit comments