[][src]Struct tendermint::block::header::Header

pub struct Header {
    pub version: Version,
    pub chain_id: Id,
    pub height: Height,
    pub time: Time,
    pub num_txs: u64,
    pub total_txs: u64,
    pub last_block_id: Id,
    pub last_commit_hash: Hash,
    pub data_hash: Hash,
    pub validators_hash: Hash,
    pub next_validators_hash: Hash,
    pub consensus_hash: Hash,
    pub app_hash: Hash,
    pub last_results_hash: Hash,
    pub evidence_hash: Hash,
    pub proposer_address: Id,
}

Block Header values contain metadata about the block and about the consensus, as well as commitments to the data in the current block, the previous block, and the results returned by the application.

https://github.com/tendermint/tendermint/blob/master/docs/spec/blockchain/blockchain.md#header

Fields

version: Version

Header version

chain_id: Id

Chain ID

height: Height

Current block height

time: Time

Current timestamp

num_txs: u64

Number of transactions in block

total_txs: u64

Total number of transactions

last_block_id: Id

Previous block info

last_commit_hash: Hash

Commit from validators from the last block

data_hash: Hash

Merkle root of transaction hashes

validators_hash: Hash

Validators for the current block

next_validators_hash: Hash

Validators for the next block

consensus_hash: Hash

Consensus params for the current block

app_hash: Hash

State after txs from the previous block

last_results_hash: Hash

Root hash of all results from the txs from the previous block

evidence_hash: Hash

Hash of evidence included in the block

proposer_address: Id

Original proposer of the block

Trait Implementations

impl Clone for Header[src]

impl Debug for Header[src]

impl Serialize for Header[src]

impl<'de> Deserialize<'de> for Header[src]

Auto Trait Implementations

impl Send for Header

impl Sync for Header

impl Unpin for Header

impl UnwindSafe for Header

impl RefUnwindSafe for Header

Blanket Implementations

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Typeable for T where
    T: Any