mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-29 11:11:53 +01:00
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:
parent
37849194f4
commit
3191b949f5
1505
lnrpc/rpc.pb.go
1505
lnrpc/rpc.pb.go
File diff suppressed because it is too large
Load Diff
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user