Merge pull request #2521 from joostjager/sendtosingleroute

lnrpc: deprecate SendToRoute with more than one route
This commit is contained in:
Olaoluwa Osuntokun authored and GitHub committed 2019-02-05 18:06:01 -08:00
commit e5d660daf9
4 files changed
+623 -585

No files matched your search

+565 -549
View File
File diff suppressed because it is too large. Load diff
+10 -2
View File
@@ -781,8 +781,16 @@ message SendToRouteRequest {
/// An optional hex-encoded payment hash to be used for the HTLC.
string payment_hash_string = 2;
/// The set of routes that should be used to attempt to complete the payment.
repeated Route routes = 3;
/**
Deprecated. The set of routes that should be used to attempt to complete the
payment. The possibility to pass in multiple routes is deprecated and
instead the single route field below should be used in combination with the
streaming variant of SendToRoute.
*/
repeated Route routes = 3 [deprecated = true];
/// Route that should be used to attempt to complete the payment.
Route route = 4;
}
message ChannelPoint {
+5 -1
View File
@@ -2911,7 +2911,11 @@
"items": {
"$ref": "#/definitions/lnrpcRoute"
},
"description": "/ The set of routes that should be used to attempt to complete the payment."
"description": "*\nDeprecated. The set of routes that should be used to attempt to complete the\npayment. The possibility to pass in multiple routes is deprecated and \ninstead the single route field below should be used in combination with the \nstreaming variant of SendToRoute."
},
"route": {
"$ref": "#/definitions/lnrpcRoute",
"description": "/ Route that should be used to attempt to complete the payment."
}
}
},