Struct ethcore::client::BlockChainInfo
[−]
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>, }
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.
Methods
impl BlockChainInfo
impl BlockChainInfo
pub fn security_level(&self) -> SecurityLevel
pub fn security_level(&self) -> SecurityLevel
Determine the security model for the current state.
Trait Implementations
impl Clone for BlockChainInfo
impl Clone for BlockChainInfo
fn clone(&self) -> BlockChainInfo
fn clone(&self) -> BlockChainInfo
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Display for BlockChainInfo
impl Display for BlockChainInfo
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Debug for BlockChainInfo
impl Debug for BlockChainInfo
Auto Trait Implementations
impl Send for BlockChainInfo
impl Send for BlockChainInfo
impl Sync for BlockChainInfo
impl Sync for BlockChainInfo