[][src]Struct abci::types::Header

pub struct Header {
    pub version: Option<Version>,
    pub chain_id: String,
    pub height: i64,
    pub time: Option<Duration>,
    pub num_txs: i64,
    pub total_txs: i64,
    pub last_block_id: Option<BlockId>,
    pub last_commit_hash: Vec<u8>,
    pub data_hash: Vec<u8>,
    pub validators_hash: Vec<u8>,
    pub next_validators_hash: Vec<u8>,
    pub consensus_hash: Vec<u8>,
    pub app_hash: Vec<u8>,
    pub last_results_hash: Vec<u8>,
    pub evidence_hash: Vec<u8>,
    pub proposer_address: Vec<u8>,
}

Fields

version: Option<Version>

Version of the blockchain and the application

chain_id: String

ID of the blockchain

height: i64

Height of the block in the chain

time: Option<Duration>

Time of the previous block. For heights > 1, it's the weighted median of the timestamps of the valid votes in the block.last_commit. For height == 1, it's genesis time. (duration since epoch)

num_txs: i64

Number of transactions in the block

total_txs: i64

Total number of transactions in the blockchain until now

last_block_id: Option<BlockId>

Hash of the previous (parent) block

last_commit_hash: Vec<u8>

Hash of the previous block's commit

data_hash: Vec<u8>

Hash if data in the block

validators_hash: Vec<u8>

Hash of the validator set for this block

next_validators_hash: Vec<u8>

Hash of the validator set for the next block

consensus_hash: Vec<u8>

Hash of the consensus parameters for this block

app_hash: Vec<u8>

Data returned by the last call to Commit - typically the Merkle root of the application state after executing the previous block's transactions

last_results_hash: Vec<u8>

Hash of the ABCI results returned by the last block

evidence_hash: Vec<u8>

Hash of the evidence included in this block

proposer_address: Vec<u8>

Original proposer for the block

Trait Implementations

impl Debug for Header[src]

impl Default for Header[src]

Auto Trait Implementations

impl RefUnwindSafe for Header

impl Send for Header

impl Sync for Header

impl Unpin for Header

impl UnwindSafe for Header

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.