Trait ethcore::client::IoClient
[−]
[src]
pub trait IoClient: Sync + Send { fn queue_transactions(&self, transactions: Vec<Bytes>, peer_id: usize); fn queue_ancient_block(
&self,
block_bytes: Bytes,
receipts_bytes: Bytes
) -> Result<H256, BlockImportError>; fn queue_consensus_message(&self, message: Bytes); }
IO operations that should off-load heavy work to another thread.
Required Methods
fn queue_transactions(&self, transactions: Vec<Bytes>, peer_id: usize)
Queue transactions for importing.
fn queue_ancient_block(
&self,
block_bytes: Bytes,
receipts_bytes: Bytes
) -> Result<H256, BlockImportError>
&self,
block_bytes: Bytes,
receipts_bytes: Bytes
) -> Result<H256, BlockImportError>
Queue block import with transaction receipts. Does no sealing and transaction validation.
fn queue_consensus_message(&self, message: Bytes)
Queue conensus engine message.
Implementors
impl IoClient for Client
impl IoClient for TestBlockChainClient