rpc: minor nits on prior update

This commit is contained in:
George Tankersley
2018-11-30 18:00:07 +00:00
parent e2326f1aea
commit a3ce1900c9
3 changed files with 9 additions and 10 deletions

View File

@@ -1,6 +1,8 @@
syntax = "proto3";
package proto;
import "compact_formats.proto";
// A BlockID message contains identifiers to select a block: a height or a
// hash. If the hash is present it takes precedence.
message BlockID {
@@ -24,12 +26,8 @@ message TxFilter {
bytes hash = 3;
}
message FullTransaction {
TxFilter txID = 1;
bytes data = 2;
}
message SentTransaction {
// RawTransaction contains the complete transaction data.
message RawTransaction {
bytes data = 1;
}
@@ -45,6 +43,6 @@ service CompactTxStreamer {
rpc GetLatestBlock(ChainSpec) returns (BlockID) {}
rpc GetBlock(BlockID) returns (CompactBlock) {}
rpc GetBlockRange(BlockRange) returns (stream CompactBlock) {}
rpc GetTransaction(TxFilter) returns (FullTransaction) {}
rpc GetTransaction(TxFilter) returns (RawTransaction) {}
rpc SendTransaction(RawTransaction) returns (SendResponse) {}
}