lnrpc: add bi-directional streaming SendPayment RPC

This commit is contained in:
Olaoluwa Osuntokun committed 2016-07-12 17:36:40 -07:00
1 parent 7dea354711
commit 09f6ecef1f
2 files changed
+222 -115

No files matched your search

+13
View File
@@ -15,6 +15,19 @@ service Lightning {
rpc OpenChannel(OpenChannelRequest) returns (stream ChannelOpenUpdate);
rpc CloseChannel(CloseChannelRequest) returns (stream ChannelCloseUpdate);
rpc PendingChannels(PendingChannelRequest) returns (PendingChannelResponse);
rpc SendPayment(stream SendRequest) returns (stream SendResponse);
}
message SendRequest {
bytes dest = 1;
int64 amt = 2;
bytes payment_hash = 3;
bool fast_send = 4;
}
message SendResponse{
// TODO(roasbeef): info about route? stats?
}
message ChannelPoint {