routerrpc: format proto

This commit is contained in:
Oliver Gugger committed 2020-06-04 08:50:44 +02:00
1 parent f48b0289f5
commit 19e3dc6378
3 files changed
+14 -12

No files matched your search

+8 -6
View File
@@ -1940,9 +1940,10 @@ type RouterClient interface {
//SendToRouteV2 in that it doesn't return the full HTLC information.
SendToRoute(ctx context.Context, in *SendToRouteRequest, opts ...grpc.CallOption) (*SendToRouteResponse, error)
//
//SendToRouteV2 attempts to make a payment via the specified route. This method
//differs from SendPayment in that it allows users to specify a full route
//manually. This can be used for things like rebalancing, and atomic swaps.
//SendToRouteV2 attempts to make a payment via the specified route. This
//method differs from SendPayment in that it allows users to specify a full
//route manually. This can be used for things like rebalancing, and atomic
//swaps.
SendToRouteV2(ctx context.Context, in *SendToRouteRequest, opts ...grpc.CallOption) (*lnrpc.HTLCAttempt, error)
//
//ResetMissionControl clears all mission control state and starts with a clean
@@ -2233,9 +2234,10 @@ type RouterServer interface {
//SendToRouteV2 in that it doesn't return the full HTLC information.
SendToRoute(context.Context, *SendToRouteRequest) (*SendToRouteResponse, error)
//
//SendToRouteV2 attempts to make a payment via the specified route. This method
//differs from SendPayment in that it allows users to specify a full route
//manually. This can be used for things like rebalancing, and atomic swaps.
//SendToRouteV2 attempts to make a payment via the specified route. This
//method differs from SendPayment in that it allows users to specify a full
//route manually. This can be used for things like rebalancing, and atomic
//swaps.
SendToRouteV2(context.Context, *SendToRouteRequest) (*lnrpc.HTLCAttempt, error)
//
//ResetMissionControl clears all mission control state and starts with a clean
+5 -5
View File
@@ -40,9 +40,10 @@ service Router {
}
/*
SendToRouteV2 attempts to make a payment via the specified route. This method
differs from SendPayment in that it allows users to specify a full route
manually. This can be used for things like rebalancing, and atomic swaps.
SendToRouteV2 attempts to make a payment via the specified route. This
method differs from SendPayment in that it allows users to specify a full
route manually. This can be used for things like rebalancing, and atomic
swaps.
*/
rpc SendToRouteV2 (SendToRouteRequest) returns (lnrpc.HTLCAttempt);
@@ -82,7 +83,7 @@ service Router {
returns (stream HtlcEvent);
/*
Deprecated, use SendPaymentV2. SendPayment attempts to route a payment
Deprecated, use SendPaymentV2. SendPayment attempts to route a payment
described by the passed PaymentRequest to the final destination. The call
returns a stream of payment status updates.
*/
@@ -578,4 +579,3 @@ message PaymentStatus {
*/
repeated lnrpc.HTLCAttempt htlcs = 4;
}
+1 -1
View File
@@ -216,7 +216,7 @@
},
"/v2/router/route/send": {
"post": {
"summary": "SendToRouteV2 attempts to make a payment via the specified route. This method\ndiffers from SendPayment in that it allows users to specify a full route\nmanually. This can be used for things like rebalancing, and atomic swaps.",
"summary": "SendToRouteV2 attempts to make a payment via the specified route. This\nmethod differs from SendPayment in that it allows users to specify a full\nroute manually. This can be used for things like rebalancing, and atomic\nswaps.",
"operationId": "SendToRouteV2",
"responses": {
"200": {