test spec explicitly

This commit is contained in:
Nikolay Volf 2016-05-16 22:32:18 +03:00
parent f3f45a1dd9
commit d424194bbf

View File

@ -16,6 +16,7 @@
use util::*; use util::*;
use ethcore::client::{TestBlockChainClient, BlockChainClient}; use ethcore::client::{TestBlockChainClient, BlockChainClient};
use ethcore::spec::Spec;
use io::SyncIo; use io::SyncIo;
use chain::ChainSync; use chain::ChainSync;
use ethminer::Miner; use ethminer::Miner;
@ -93,7 +94,7 @@ impl TestNet {
for _ in 0..n { for _ in 0..n {
net.peers.push(TestPeer { net.peers.push(TestPeer {
chain: TestBlockChainClient::new(), chain: TestBlockChainClient::new(),
sync: ChainSync::new(SyncConfig::default(), Arc::new(Miner::default())), sync: ChainSync::new(SyncConfig::default(), Miner::new(false, Spec::new_test())),
queue: VecDeque::new(), queue: VecDeque::new(),
}); });
} }