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:
Joost Jager committed 2020-03-31 21:41:34 +02:00
1 parent 37849194f4
commit 3191b949f5
2 files changed
+762 -756

No files matched your search

+754 -751
View File
File diff suppressed because it is too large. Load diff
+8 -5
View File
@@ -503,12 +503,15 @@ service Lightning {
}
/** lncli: `sendpayment`
SendPayment dispatches a bi-directional streaming RPC for sending payments
through the Lightning Network. A single RPC invocation creates a persistent
bi-directional stream allowing clients to rapidly send payments through the
Lightning Network with a single persistent connection.
Deprecated, use routerrpc.SendPayment. SendPayment dispatches a
bi-directional streaming RPC for sending payments through the Lightning
Network. A single RPC invocation creates a persistent bi-directional
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.