Trait grin_chain::types::ChainAdapter

source ·
pub trait ChainAdapter {
    // Required method
    fn block_accepted(&self, block: &Block, status: BlockStatus, opts: Options);
}
Expand description

Bridge between the chain pipeline and the rest of the system. Handles downstream processing of valid blocks by the rest of the system, most importantly the broadcasting of blocks to our peers.

Required Methods§

source

fn block_accepted(&self, block: &Block, status: BlockStatus, opts: Options)

The blockchain pipeline has accepted this block as valid and added it to our chain.

Implementors§