pub struct BlockChainInfo {
    pub total_difficulty: U256,
    pub pending_total_difficulty: U256,
    pub genesis_hash: H256,
    pub best_block_hash: H256,
    pub best_block_number: u64,
    pub best_block_timestamp: u64,
    pub ancient_block_hash: Option<H256>,
    pub ancient_block_number: Option<u64>,
    pub first_block_hash: Option<H256>,
    pub first_block_number: Option<u64>,
}
Expand description

Information about the blockchain gathered together.

Fields

total_difficulty: U256

Blockchain difficulty.

pending_total_difficulty: U256

Block queue difficulty.

genesis_hash: H256

Genesis block hash.

best_block_hash: H256

Best blockchain block hash.

best_block_number: u64

Best blockchain block number.

best_block_timestamp: u64

Best blockchain block timestamp.

ancient_block_hash: Option<H256>

Best ancient block hash.

ancient_block_number: Option<u64>

Best ancient block number.

first_block_hash: Option<H256>

First block on the best sequence.

first_block_number: Option<u64>

Number of the first block on the best sequence.

Implementations

Determine the security model for the current state.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.