github.com/franono/tendermint@v0.32.2-0.20200527150959-749313264ce9/types/proto3/block.proto (about) 1 syntax = "proto3"; 2 3 package tendermint.types.proto3; 4 option go_package = "github.com/franono/tendermint/types/proto3"; 5 6 message PartSetHeader { 7 int32 Total = 1; 8 bytes Hash = 2; 9 } 10 11 message BlockID { 12 bytes Hash = 1; 13 PartSetHeader PartsHeader = 2; 14 } 15 16 message Header { 17 // basic block info 18 Version Version = 1; 19 string ChainID = 2; 20 int64 Height = 3; 21 Timestamp Time = 4; 22 23 // prev block info 24 BlockID LastBlockID = 5; 25 26 // hashes of block data 27 bytes LastCommitHash = 6; // commit from validators from the last block 28 bytes DataHash = 7; // transactions 29 30 // hashes from the app output from the prev block 31 bytes ValidatorsHash = 8; // validators for the current block 32 bytes NextValidatorsHash = 9; // validators for the next block 33 bytes ConsensusHash = 10; // consensus params for current block 34 bytes AppHash = 11; // state after txs from the previous block 35 bytes LastResultsHash = 12; // root hash of all results from the txs from the previous block 36 37 // consensus info 38 bytes EvidenceHash = 13; // evidence included in the block 39 bytes ProposerAddress = 14; // original proposer of the block 40 } 41 42 message Version { 43 uint64 Block = 1; 44 uint64 App = 2; 45 } 46 47 // Timestamp wraps how amino encodes time. 48 // This is the protobuf well-known type protobuf/timestamp.proto 49 // See: 50 // https://github.com/google/protobuf/blob/d2980062c859649523d5fd51d6b55ab310e47482/src/google/protobuf/timestamp.proto#L123-L135 51 // NOTE/XXX: nanos do not get skipped if they are zero in amino. 52 message Timestamp { 53 int64 seconds = 1; 54 int32 nanos = 2; 55 }