Documentation ¶
Index ¶
- Variables
- type State
- func (*State) Descriptor() ([]byte, []int)
- func (m *State) GetAppHash() []byte
- func (m *State) GetChainID() string
- func (m *State) GetConsensusParams() types.ConsensusParams
- func (m *State) GetInitialHeight() int64
- func (m *State) GetLastBlockHeight() int64
- func (m *State) GetLastBlockID() types.BlockID
- func (m *State) GetLastBlockTime() time.Time
- func (m *State) GetLastHeightConsensusParamsChanged() int64
- func (m *State) GetLastHeightValidatorsChanged() int64
- func (m *State) GetLastProofHash() []byte
- func (m *State) GetLastResultsHash() []byte
- func (m *State) GetLastValidators() *types.ValidatorSet
- func (m *State) GetNextValidators() *types.ValidatorSet
- func (m *State) GetValidators() *types.ValidatorSet
- func (m *State) GetVersion() state.Version
- func (m *State) Marshal() (dAtA []byte, err error)
- func (m *State) MarshalTo(dAtA []byte) (int, error)
- func (m *State) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*State) ProtoMessage()
- func (m *State) Reset()
- func (m *State) Size() (n int)
- func (m *State) String() string
- func (m *State) Unmarshal(dAtA []byte) error
- func (m *State) XXX_DiscardUnknown()
- func (m *State) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *State) XXX_Merge(src proto.Message)
- func (m *State) XXX_Size() int
- func (m *State) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type State ¶
type State struct { Version state.Version `protobuf:"bytes,1,opt,name=version,proto3" json:"version"` // immutable ChainID string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` InitialHeight int64 `protobuf:"varint,14,opt,name=initial_height,json=initialHeight,proto3" json:"initial_height,omitempty"` // LastBlockHeight=0 at genesis (ie. block(H=0) does not exist) LastBlockHeight int64 `protobuf:"varint,3,opt,name=last_block_height,json=lastBlockHeight,proto3" json:"last_block_height,omitempty"` LastBlockID types.BlockID `protobuf:"bytes,4,opt,name=last_block_id,json=lastBlockId,proto3" json:"last_block_id"` LastBlockTime time.Time `protobuf:"bytes,5,opt,name=last_block_time,json=lastBlockTime,proto3,stdtime" json:"last_block_time"` // LastValidators is used to validate block.LastCommit. // Validators are persisted to the database separately every time they change, // so we can query for historical validator sets. // Note that if s.LastBlockHeight causes a valset change, // we set s.LastHeightValidatorsChanged = s.LastBlockHeight + 1 + 1 // Extra +1 due to nextValSet delay. NextValidators *types.ValidatorSet `protobuf:"bytes,6,opt,name=next_validators,json=nextValidators,proto3" json:"next_validators,omitempty"` Validators *types.ValidatorSet `protobuf:"bytes,7,opt,name=validators,proto3" json:"validators,omitempty"` LastValidators *types.ValidatorSet `protobuf:"bytes,8,opt,name=last_validators,json=lastValidators,proto3" json:"last_validators,omitempty"` LastHeightValidatorsChanged int64 `` /* 147-byte string literal not displayed */ // Consensus parameters used for validating blocks. // Changes returned by EndBlock and updated after Commit. ConsensusParams types.ConsensusParams `protobuf:"bytes,10,opt,name=consensus_params,json=consensusParams,proto3" json:"consensus_params"` LastHeightConsensusParamsChanged int64 `` /* 165-byte string literal not displayed */ // Merkle root of the results from executing prev block LastResultsHash []byte `protobuf:"bytes,12,opt,name=last_results_hash,json=lastResultsHash,proto3" json:"last_results_hash,omitempty"` // the latest AppHash we've received from calling abci.Commit() AppHash []byte `protobuf:"bytes,13,opt,name=app_hash,json=appHash,proto3" json:"app_hash,omitempty"` // the VRF Proof value generated by the last Proposer LastProofHash []byte `protobuf:"bytes,1000,opt,name=last_proof_hash,json=lastProofHash,proto3" json:"last_proof_hash,omitempty"` }
func (*State) Descriptor ¶
func (*State) GetAppHash ¶
func (*State) GetChainID ¶
func (*State) GetConsensusParams ¶
func (m *State) GetConsensusParams() types.ConsensusParams
func (*State) GetInitialHeight ¶
func (*State) GetLastBlockHeight ¶
func (*State) GetLastBlockID ¶
func (*State) GetLastBlockTime ¶
func (*State) GetLastHeightConsensusParamsChanged ¶
func (*State) GetLastHeightValidatorsChanged ¶
func (*State) GetLastProofHash ¶
func (*State) GetLastResultsHash ¶
func (*State) GetLastValidators ¶
func (m *State) GetLastValidators() *types.ValidatorSet
func (*State) GetNextValidators ¶
func (m *State) GetNextValidators() *types.ValidatorSet
func (*State) GetValidators ¶
func (m *State) GetValidators() *types.ValidatorSet
func (*State) GetVersion ¶
func (*State) ProtoMessage ¶
func (*State) ProtoMessage()
func (*State) XXX_DiscardUnknown ¶
func (m *State) XXX_DiscardUnknown()
func (*State) XXX_Marshal ¶
func (*State) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.