github.com/hyperledger/burrow@v0.34.5-0.20220512172541-77f09336001d/protobuf/bcm.proto (about) 1 // Needed to proto2 rather than proto3 to get pointer field for PermArg 2 syntax = 'proto3'; 3 4 option go_package = "github.com/hyperledger/burrow/bcm"; 5 6 import "gogoproto/gogo.proto"; 7 import "google/protobuf/timestamp.proto"; 8 import "google/protobuf/duration.proto"; 9 10 package bcm; 11 12 option (gogoproto.stable_marshaler_all) = true; 13 option (gogoproto.marshaler_all) = true; 14 option (gogoproto.unmarshaler_all) = true; 15 option (gogoproto.sizer_all) = true; 16 option (gogoproto.goproto_registration) = true; 17 option (gogoproto.messagename_all) = true; 18 19 message SyncInfo { 20 uint64 LatestBlockHeight = 1; 21 bytes LatestBlockHash = 2 [(gogoproto.customtype) = "github.com/hyperledger/burrow/binary.HexBytes", (gogoproto.nullable) = false]; 22 bytes LatestAppHash = 3 [(gogoproto.customtype) = "github.com/hyperledger/burrow/binary.HexBytes", (gogoproto.nullable) = false]; 23 // Timestamp of block as set by the block proposer 24 google.protobuf.Timestamp LatestBlockTime = 4 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; 25 // Time at which we committed the last block 26 google.protobuf.Timestamp LatestBlockSeenTime = 5 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; 27 // Time elapsed since last commit 28 google.protobuf.Duration LatestBlockDuration = 6 [(gogoproto.nullable) = false, (gogoproto.stdduration) = true]; 29 } 30 31 message PersistedState { 32 bytes AppHashAfterLastBlock = 1 [(gogoproto.customtype) = "github.com/hyperledger/burrow/binary.HexBytes", (gogoproto.nullable) = false]; 33 google.protobuf.Timestamp LastBlockTime = 2 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; 34 uint64 LastBlockHeight = 3; 35 bytes GenesisHash = 4 [(gogoproto.customtype) = "github.com/hyperledger/burrow/binary.HexBytes", (gogoproto.nullable) = false]; 36 }