Trait client_traits::ImportBlock[][src]

pub trait ImportBlock {
    fn import_block(&self, block: Unverified) -> VapcoreResult<H256>;
fn import_verified_blocks(&self) -> usize; }

Provides methods to import block into blockchain

Required methods

fn import_block(&self, block: Unverified) -> VapcoreResult<H256>[src]

Import a block into the blockchain.

fn import_verified_blocks(&self) -> usize[src]

Triggered by a message from a block queue when the block is ready for insertion. Returns the number of blocks imported.

Loading content...

Implementors

Loading content...