fixed compilation

This commit is contained in:
Svyatoslav Nikolsky 2016-12-05 11:00:27 +03:00
parent c9605c05bc
commit fa08d5b5f1
2 changed files with 2 additions and 12 deletions

View File

@ -314,7 +314,7 @@ mod tests {
let chain = Arc::new(RwLock::new(Chain::new(Arc::new(db::TestStorage::with_genesis_block()))));
let executor = DummyTaskExecutor::new();
let server = Arc::new(DummyServer::new());
let config = Config { threads_num: 1 };
let config = Config { threads_num: 1, close_connection_on_bad_block: true };
let client_core = SynchronizationClientCore::new(config, &handle, executor.clone(), chain.clone(), Magic::Mainnet);
let mut verifier = DummyVerifier::default();
verifier.set_sink(client_core.clone());

View File

@ -340,16 +340,6 @@ struct AverageSpeedMeter {
last_timestamp: Option<f64>,
}
impl Config {
#[cfg(test)]
pub fn new() -> Self {
Config {
close_connection_on_bad_block: true,
threads_num: 4,
}
}
}
impl FilteredInventory {
#[cfg(test)]
pub fn with_unfiltered(unfiltered: Vec<InventoryVector>) -> Self {
@ -1713,7 +1703,7 @@ pub mod tests {
};
let chain = ChainRef::new(RwLock::new(Chain::new(storage.clone())));
let executor = DummyTaskExecutor::new();
let config = Config { threads_num: 1 };
let config = Config { threads_num: 1, close_connection_on_bad_block: true };
let client_core = SynchronizationClientCore::new(config, &handle, executor.clone(), chain.clone(), Magic::Testnet);
{