pub trait ChainAdapter {
    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

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

Implementors