Struct bitcoin::blockdata::blockchain::BlockchainNode [] [src]

pub struct BlockchainNode {
    pub block: Block,
    pub total_work: Uint256,
    pub required_difficulty: Uint256,
    pub height: u32,
    pub has_txdata: bool,
    // some fields omitted
}

A link in the blockchain

Fields

The actual block

Total work from genesis to this point

Expected value of block.header.bits for this block; only changes every blockdata::constants::DIFFCHANGE_INTERVAL; blocks

Height above genesis

Whether the transaction data is stored

Trait Implementations

impl<S: SimpleEncoder> ConsensusEncodable<S> for BlockchainNode
[src]

[src]

Encode an object with a well-defined format

impl<D: SimpleDecoder> ConsensusDecodable<D> for BlockchainNode
[src]

[src]

Decode an object with a well-defined format

impl BitcoinHash for BlockchainNode
[src]

[src]

Produces a Sha256dHash which can be used to refer to the object