[][src]Trait grin_chain::types::ChainAdapter

pub trait ChainAdapter {
    fn block_accepted(&self, block: &Block, status: BlockStatus, opts: Options);
}

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

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

Implementors

impl ChainAdapter for NoopAdapter
[src]