Trait ethcore::client::ChainNotify[][src]

pub trait ChainNotify: Send + Sync {
    fn new_blocks(
        &self,
        _imported: Vec<H256>,
        _invalid: Vec<H256>,
        _route: ChainRoute,
        _sealed: Vec<H256>,
        _proposed: Vec<Bytes>,
        _duration: Duration
    ) { ... }
fn start(&self) { ... }
fn stop(&self) { ... }
fn broadcast(&self, _message_type: ChainMessageType) { ... }
fn transactions_received(
        &self,
        _txs: &[UnverifiedTransaction],
        _peer_id: usize
    ) { ... } }

Represents what has to be handled by actor listening to chain events

Provided Methods

fires when chain has new blocks.

fires when chain achieves active mode

fires when chain achieves passive mode

fires when chain broadcasts a message

fires when new transactions are received from a peer

Implementors