New grpc API test

This commit is contained in:
Aditya Kulkarni
2019-09-05 13:19:48 -07:00
parent 67864dfdb6
commit 145856f387
3 changed files with 60 additions and 2 deletions

View File

@@ -40,10 +40,13 @@ message SendResponse {
// Empty placeholder. Someday we may want to specify e.g. a particular chain fork.
message ChainSpec {}
message Empty {}
service CompactTxStreamer {
rpc GetLatestBlock(ChainSpec) returns (BlockID) {}
rpc GetBlock(BlockID) returns (CompactBlock) {}
rpc GetBlockRange(BlockRange) returns (stream CompactBlock) {}
rpc GetTransaction(TxFilter) returns (RawTransaction) {}
rpc SendTransaction(RawTransaction) returns (SendResponse) {}
rpc GetLightdInfo(Empty) returns (SendResponse) {}
}