# 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]

#### `fn fmt(&self, f: &mut Formatter) -> Result`

Formats the value using the given formatter.

### `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

### `impl Debug for BlockChainInfo`
[src]

#### `fn fmt(&self, __arg_0: &mut Formatter) -> Result`

Formats the value using the given formatter.

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result
+
  Collapse/expand all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)