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 2020-03-30 15:50:41 +02:00
parent 37849194f4
commit 3191b949f5
No known key found for this signature in database
GPG Key ID: A61B9D4C393C59C7
2 changed files with 762 additions and 756 deletions

File diff suppressed because it is too large Load Diff

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.