refactoring to hold miner within the client

This commit is contained in:
Nikolay Volf
2016-05-31 19:01:37 +02:00
parent 0cd8644292
commit 4f732972bc
8 changed files with 42 additions and 47 deletions

View File

@@ -15,7 +15,7 @@
// along with Parity. If not, see <http://www.gnu.org/licenses/>.
use util::*;
use ethcore::client::{BlockChainClient, BlockID, EachBlockWith};
use ethcore::client::{MiningClient, BlockID, EachBlockWith};
use chain::{SyncState};
use super::helpers::*;

View File

@@ -63,7 +63,7 @@ impl<'p> SyncIo for TestIo<'p> {
Ok(())
}
fn chain(&self) -> &BlockChainClient {
fn chain(&self) -> &MiningClient {
self.chain
}
}