lnrpc: deprecate SendPayment
There is an alternative in routerrpc now. It doesn't support REST yet, but the main rpc SendPayment with its bidirectional streaming isn't usable via REST either. SendPaymentSync still serves REST users and cannot be deprecated yet.
This commit is contained in:
2 files changed
+762
-756
No files matched your search
+754
-751
File diff suppressed because it is too large.
Load diff
+8
-5
@@ -503,12 +503,15 @@ service Lightning {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** lncli: `sendpayment`
|
/** lncli: `sendpayment`
|
||||||
SendPayment dispatches a bi-directional streaming RPC for sending payments
|
Deprecated, use routerrpc.SendPayment. SendPayment dispatches a
|
||||||
through the Lightning Network. A single RPC invocation creates a persistent
|
bi-directional streaming RPC for sending payments through the Lightning
|
||||||
bi-directional stream allowing clients to rapidly send payments through the
|
Network. A single RPC invocation creates a persistent bi-directional
|
||||||
Lightning Network with a single persistent connection.
|
stream allowing clients to rapidly send payments through the Lightning
|
||||||
|
Network with a single persistent connection.
|
||||||
*/
|
*/
|
||||||
rpc SendPayment (stream SendRequest) returns (stream SendResponse);
|
rpc SendPayment (stream SendRequest) returns (stream SendResponse) {
|
||||||
|
option deprecated = true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
SendPaymentSync is the synchronous non-streaming version of SendPayment.
|
SendPaymentSync is the synchronous non-streaming version of SendPayment.
|
||||||
|
|||||||
Reference in new issue
Block a user