[][src]Trait grin_servers::common::hooks::ChainEvents

pub trait ChainEvents {
    fn on_block_accepted(&self, block: &Block, status: &BlockStatus) { ... }
}

Trait to be implemented by Chain Event Hooks

Provided methods

fn on_block_accepted(&self, block: &Block, status: &BlockStatus)

Triggers when a new block is accepted by the chain (might be a Reorg or a Fork)

Loading content...

Implementors

Loading content...