Struct tendermint_proto::state::State [−][src]
pub struct State {}Show fields
pub version: Option<Version>, pub chain_id: String, pub initial_height: i64, pub last_block_height: i64, pub last_block_id: Option<BlockId>, pub last_block_time: Option<Timestamp>, pub next_validators: Option<ValidatorSet>, pub validators: Option<ValidatorSet>, pub last_validators: Option<ValidatorSet>, pub last_height_validators_changed: i64, pub consensus_params: Option<ConsensusParams>, pub last_height_consensus_params_changed: i64, pub last_results_hash: Vec<u8>, pub app_hash: Vec<u8>,
Fields
version: Option<Version>
chain_id: String
immutable
initial_height: i64
last_block_height: i64
LastBlockHeight=0 at genesis (ie. block(H=0) does not exist)
last_block_id: Option<BlockId>
last_block_time: Option<Timestamp>
next_validators: Option<ValidatorSet>
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.
validators: Option<ValidatorSet>
last_validators: Option<ValidatorSet>
last_height_validators_changed: i64
consensus_params: Option<ConsensusParams>
Consensus parameters used for validating blocks. Changes returned by EndBlock and updated after Commit.
last_height_consensus_params_changed: i64
last_results_hash: Vec<u8>
Merkle root of the results from executing prev block
app_hash: Vec<u8>
the latest AppHash we’ve received from calling abci.Commit()
Trait Implementations
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
Returns the encoded length of the message without a length delimiter.
Encodes the message to a buffer. Read more
Encodes the message with a length-delimiter to a buffer. Read more
Decodes an instance of the message from a buffer. Read more
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
Decodes a length-delimited instance of the message from the buffer.
Decodes an instance of the message from a buffer, and merges it into self
. Read more
Decodes a length-delimited instance of the message from buffer, and
merges it into self
. Read more
Auto Trait Implementations
impl RefUnwindSafe for State
impl UnwindSafe for State
Blanket Implementations
Mutably borrows from an owned value. Read more