Struct ethcore::blockchain_info::BlockChainInfo
[−]
[src]
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: BlockNumber, pub ancient_block_hash: Option<H256>, pub ancient_block_number: Option<BlockNumber>, pub first_block_hash: Option<H256>, pub first_block_number: Option<BlockNumber>, }
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: BlockNumber
Best blockchain block number.
ancient_block_hash: Option<H256>
Best ancient block hash.
ancient_block_number: Option<BlockNumber>
Best ancient block number.
first_block_hash: Option<H256>
First block on the best sequence.
first_block_number: Option<BlockNumber>
Number of the first block on the best sequence.
Methods
impl BlockChainInfo
[src]
fn security_level(&self) -> SecurityLevel
Determine the security model for the current state.
Trait Implementations
impl Display for BlockChainInfo
[src]
impl Clone for BlockChainInfo
[src]
fn clone(&self) -> BlockChainInfo
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more