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

pub struct Blockchain { /* fields omitted */ }

The blockchain

Methods

impl Blockchain
[src]

[src]

Constructs a new blockchain

[src]

Looks up a block in the chain and returns the BlockchainNode containing it

[src]

Locates a block in the chain and overwrites its txdata

[src]

Locates a block in the chain and removes its txdata

[src]

Adds a block header to the chain

[src]

Adds a block to the chain

[src]

Returns the genesis block's blockhash

[src]

Returns the best tip

[src]

Returns the best tip's blockhash

[src]

Returns an array of locator hashes used in getheaders messages

[src]

An iterator over all blocks in the chain starting from start_hash

[src]

An iterator over all blocks in reverse order to the genesis, starting with start_hash

[src]

An iterator over all blocks -not- in the best chain, in reverse order, starting from start_hash

Trait Implementations

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

[src]

Encode an object with a well-defined format

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

[src]

Decode an object with a well-defined format