From 225d0b02e7d82925450dee260d720b71789582e7 Mon Sep 17 00:00:00 2001 From: keorn Date: Fri, 11 Nov 2016 17:10:47 +0000 Subject: [PATCH] update parity module --- parity/params.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/parity/params.rs b/parity/params.rs index 5a81fba7f..783c4564a 100644 --- a/parity/params.rs +++ b/parity/params.rs @@ -19,7 +19,6 @@ use std::time::Duration; use util::{Address, U256, version_data}; use util::journaldb::Algorithm; use ethcore::spec::Spec; -use ethcore::ethereum; use ethcore::client::Mode; use ethcore::miner::{GasPricer, GasPriceCalibratorOptions}; use user_defaults::UserDefaults; @@ -59,11 +58,11 @@ impl str::FromStr for SpecType { impl SpecType { pub fn spec(&self) -> Result { match *self { - SpecType::Mainnet => Ok(ethereum::new_frontier()), - SpecType::Testnet => Ok(ethereum::new_morden()), - SpecType::Olympic => Ok(ethereum::new_olympic()), - SpecType::Classic => Ok(ethereum::new_classic()), - SpecType::Expanse => Ok(ethereum::new_expanse()), + SpecType::Mainnet => Ok(Spec::new_ethereum_frontier()), + SpecType::Testnet => Ok(Spec::new_ethereum_morden()), + SpecType::Olympic => Ok(Spec::new_ethereum_olympic()), + SpecType::Classic => Ok(Spec::new_ethereum_classic()), + SpecType::Expanse => Ok(Spec::new_expanse()), SpecType::Custom(ref filename) => { let file = try!(fs::File::open(filename).map_err(|_| "Could not load specification file.")); Spec::load(file)