From f3f45a1dd90848fc8e5305b5611d05f014ef9db3 Mon Sep 17 00:00:00 2001 From: Nikolay Volf Date: Mon, 16 May 2016 20:25:05 +0300 Subject: [PATCH] ethsync tests fixed --- sync/src/lib.rs | 2 +- sync/src/tests/helpers.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sync/src/lib.rs b/sync/src/lib.rs index 0b95f0b92..f1b1bb0b2 100644 --- a/sync/src/lib.rs +++ b/sync/src/lib.rs @@ -45,7 +45,7 @@ //! let mut service = NetworkService::start(NetworkConfiguration::new()).unwrap(); //! let dir = env::temp_dir(); //! let client = Client::new(ClientConfig::default(), ethereum::new_frontier(), &dir, service.io().channel()); -//! let miner = Miner::new(false); +//! let miner = Miner::new(false, ethereum::new_frontier()); //! EthSync::register(&mut service, SyncConfig::default(), client, miner); //! } //! ``` diff --git a/sync/src/tests/helpers.rs b/sync/src/tests/helpers.rs index 269362064..76f8b220e 100644 --- a/sync/src/tests/helpers.rs +++ b/sync/src/tests/helpers.rs @@ -93,7 +93,7 @@ impl TestNet { for _ in 0..n { net.peers.push(TestPeer { chain: TestBlockChainClient::new(), - sync: ChainSync::new(SyncConfig::default(), Miner::new(false)), + sync: ChainSync::new(SyncConfig::default(), Arc::new(Miner::default())), queue: VecDeque::new(), }); }