github.com/Finschia/ostracon@v1.1.5/proto/ostracon/state/types.proto (about)

     1  syntax = "proto3";
     2  package ostracon.state;
     3  
     4  option go_package = "github.com/Finschia/ostracon/proto/ostracon/state";
     5  
     6  import "gogoproto/gogo.proto";
     7  import "tendermint/types/validator.proto";
     8  import "tendermint/types/params.proto";
     9  import "tendermint/types/types.proto";
    10  import "google/protobuf/timestamp.proto";
    11  import "tendermint/state/types.proto";
    12  
    13  message State {
    14    tendermint.state.Version version = 1 [(gogoproto.nullable) = false];
    15  
    16    // immutable
    17    string chain_id       = 2 [(gogoproto.customname) = "ChainID"];
    18    int64  initial_height = 14;
    19  
    20    // LastBlockHeight=0 at genesis (ie. block(H=0) does not exist)
    21    int64                    last_block_height = 3;
    22    tendermint.types.BlockID last_block_id     = 4
    23        [(gogoproto.nullable) = false, (gogoproto.customname) = "LastBlockID"];
    24    google.protobuf.Timestamp last_block_time = 5
    25        [(gogoproto.nullable) = false, (gogoproto.stdtime) = true];
    26  
    27    // LastValidators is used to validate block.LastCommit.
    28    // Validators are persisted to the database separately every time they change,
    29    // so we can query for historical validator sets.
    30    // Note that if s.LastBlockHeight causes a valset change,
    31    // we set s.LastHeightValidatorsChanged = s.LastBlockHeight + 1 + 1
    32    // Extra +1 due to nextValSet delay.
    33    tendermint.types.ValidatorSet next_validators                = 6;
    34    tendermint.types.ValidatorSet validators                     = 7;
    35    tendermint.types.ValidatorSet last_validators                = 8;
    36    int64                         last_height_validators_changed = 9;
    37  
    38    // Consensus parameters used for validating blocks.
    39    // Changes returned by EndBlock and updated after Commit.
    40    tendermint.types.ConsensusParams consensus_params                     = 10 [(gogoproto.nullable) = false];
    41    int64                            last_height_consensus_params_changed = 11;
    42  
    43    // Merkle root of the results from executing prev block
    44    bytes last_results_hash = 12;
    45  
    46    // the latest AppHash we've received from calling abci.Commit()
    47    bytes app_hash = 13;
    48  
    49    // *** Ostracon Extended Fields ***
    50  
    51    // the VRF Proof value generated by the last Proposer
    52    bytes last_proof_hash = 1000;
    53  }