From 65dadcc2a2bfe9c5d382b2d2716fee857318cf68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Drwi=C4=99ga?= Date: Sat, 12 Mar 2016 10:44:24 +0100 Subject: [PATCH] Adding todos --- ethcore/src/client/client.rs | 5 ++--- ethcore/src/client/mod.rs | 2 ++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ethcore/src/client/client.rs b/ethcore/src/client/client.rs index 4341e1898..1a88af951 100644 --- a/ethcore/src/client/client.rs +++ b/ethcore/src/client/client.rs @@ -350,16 +350,15 @@ impl Client where V: Verifier { } } - -// TODO: need MinerService MinerIoHandler - impl BlockChainClient for Client where V: Verifier { + // TODO [todr] Should be moved to miner crate eventually. fn try_seal(&self, block: ClosedBlock, seal: Vec) -> Result { block.try_seal(self.engine.deref().deref(), seal) } + // TODO [todr] Should be moved to miner crate eventually. fn prepare_sealing(&self, author: Address, extra_data: Bytes, transactions: Vec) -> Option { let engine = self.engine.deref().deref(); let h = self.chain.best_block_hash(); diff --git a/ethcore/src/client/mod.rs b/ethcore/src/client/mod.rs index d97f0d8b9..c13cfeee1 100644 --- a/ethcore/src/client/mod.rs +++ b/ethcore/src/client/mod.rs @@ -102,9 +102,11 @@ pub trait BlockChainClient : Sync + Send { /// Returns logs matching given filter. fn logs(&self, filter: Filter) -> Vec; + // TODO [todr] Should be moved to miner crate eventually. /// Returns ClosedBlock prepared for sealing. fn prepare_sealing(&self, author: Address, extra_data: Bytes, transactions: Vec) -> Option; + // TODO [todr] Should be moved to miner crate eventually. /// Attempts to seal given block. Returns `SealedBlock` on success and the same block in case of error. fn try_seal(&self, block: ClosedBlock, seal: Vec) -> Result;