From b8c492644bda74c861d78dce67e0e8adfdb9e599 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Sun, 4 Dec 2016 10:47:05 -0800 Subject: [PATCH] Fix more build. --- parity/cli/mod.rs | 3 +++ parity/configuration.rs | 6 ++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/parity/cli/mod.rs b/parity/cli/mod.rs index 340c06e8a..2e4996c06 100644 --- a/parity/cli/mod.rs +++ b/parity/cli/mod.rs @@ -689,6 +689,9 @@ mod tests { mode: Some("dark".into()), mode_timeout: Some(15u64), mode_alarm: Some(10u64), + auto_update: None, + no_download: None, + no_consensus: None, chain: Some("./chain.json".into()), db_path: None, keys_path: None, diff --git a/parity/configuration.rs b/parity/configuration.rs index 4031c7164..3dee4054b 100644 --- a/parity/configuration.rs +++ b/parity/configuration.rs @@ -725,7 +725,7 @@ mod tests { use super::*; use cli::Args; use ethcore_rpc::NetworkSettings; - use ethcore::client::{VMType, BlockId}; + use ethcore::client::{VMType, BlockId, UpdatePolicy, UpdateFilter}; use ethcore::miner::{MinerOptions, PrioritizationStrategy}; use helpers::{replace_home, default_network_config}; use run::RunCmd; @@ -938,6 +938,7 @@ mod tests { check_seal: true, download_old_blocks: true, require_consensus: true, + update_policy: Default::default(), })); } @@ -972,11 +973,8 @@ mod tests { // then assert_eq!(conf0.update_policy().unwrap(), UpdatePolicy{enable_downloading: true, filter: UpdateFilter::Critical}); - mining_options.tx_queue_strategy = PrioritizationStrategy::GasFactorAndGasPrice; assert_eq!(conf1.update_policy().unwrap(), UpdatePolicy{enable_downloading: true, filter: UpdateFilter::All}); - mining_options.tx_queue_strategy = PrioritizationStrategy::GasPriceOnly; assert_eq!(conf2.update_policy().unwrap(), UpdatePolicy{enable_downloading: false, filter: UpdateFilter::Patch}); - mining_options.tx_queue_strategy = PrioritizationStrategy::GasAndGasPrice; assert!(conf3.update_policy().is_err()); }