forked from hyperledger-archives/burrow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rpc.proto
39 lines (33 loc) · 1.6 KB
/
rpc.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Needed to proto2 rather than proto3 to get pointer field for PermArg
syntax = 'proto3';
option go_package = "github.com/hyperledger/burrow/rpc";
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
import "tendermint.proto";
import "validator.proto";
import "google/protobuf/timestamp.proto";
package rpc;
option (gogoproto.marshaler_all) = true;
option (gogoproto.unmarshaler_all) = true;
option (gogoproto.sizer_all) = true;
option (gogoproto.goproto_registration) = true;
option (gogoproto.messagename_all) = true;
message ResultStatus {
string ChainID = 1;
string RunID = 2;
string BurrowVersion = 3;
bytes GenesisHash = 4 [(gogoproto.customtype) = "github.com/hyperledger/burrow/binary.HexBytes", (gogoproto.nullable) = false];
tendermint.NodeInfo NodeInfo = 5;
SyncInfo SyncInfo = 6;
validator.Validator ValidatorInfo = 7;
}
message SyncInfo {
uint64 LatestBlockHeight = 1 [(gogoproto.jsontag) = ""];
bytes LatestBlockHash = 2 [(gogoproto.customtype) = "github.com/hyperledger/burrow/binary.HexBytes", (gogoproto.nullable) = false];
bytes LatestAppHash = 3 [(gogoproto.customtype) = "github.com/hyperledger/burrow/binary.HexBytes", (gogoproto.nullable) = false];
// Timestamp of block as set by the block proposer
google.protobuf.Timestamp LatestBlockTime = 4 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true];
// Time at which we committed the last block
google.protobuf.Timestamp LatestBlockSeenTime = 5 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true];
// When catching up in fast sync
bool CatchingUp = 6 [(gogoproto.jsontag) = ""];
}