Trait ethcore::client::EngineClient [] [src]

pub trait EngineClient: Sync + Send + ChainInfo {
    fn update_sealing(&self);
fn submit_seal(&self, block_hash: H256, seal: Vec<Bytes>);
fn broadcast_consensus_message(&self, message: Bytes);
fn epoch_transition_for(&self, parent_hash: H256) -> Option<EpochTransition>;
fn as_full_client(&self) -> Option<&BlockChainClient>;
fn block_number(&self, id: BlockId) -> Option<BlockNumber>;
fn block_header(&self, id: BlockId) -> Option<Header>; }

Client facilities used by internally sealing Engines.

Required Methods

Make a new block and seal it.

Submit a seal for a block in the mining queue.

Broadcast a consensus message to the network.

Get the transition to the epoch the given parent hash is part of or transitions to. This will give the epoch that any children of this parent belong to.

The block corresponding the the parent hash must be stored already.

Attempt to cast the engine client to a full client.

Get a block number by ID.

Get raw block header data by block id.

Implementors