From 31bcc541d043302e682bf4bb31ae38044f5a195c Mon Sep 17 00:00:00 2001 From: Tomusdrw Date: Wed, 10 Feb 2016 14:16:42 +0100 Subject: [PATCH] Fixing parity build --- parity/main.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/parity/main.rs b/parity/main.rs index dd0a336be..50b1557a5 100644 --- a/parity/main.rs +++ b/parity/main.rs @@ -45,7 +45,6 @@ use ethcore::spec::*; use ethcore::client::*; use ethcore::service::{ClientService, NetSyncMessage}; use ethcore::ethereum; -use ethcore::spec; use ethcore::blockchain::CacheSize; use ethsync::EthSync; use target_info::Target; @@ -117,7 +116,7 @@ impl Configuration { } } - fn print_version() { + fn print_version(&self) { println!("\ Parity version {} ({}-{}-{}) Copyright 2015, 2016 Ethcore (UK) Limited @@ -129,8 +128,8 @@ By Wood/Paronyan/Kotewicz/Drwięga/Volf.\ ", env!("CARGO_PKG_VERSION"), Target::arch(), Target::env(), Target::os()); } - fn get_spec() -> Spec { - match args.flag_chain.as_ref() { + fn get_spec(&self) -> Spec { + match self.args.flag_chain.as_ref() { "frontier" | "mainnet" => ethereum::new_frontier(), "morden" | "testnet" => ethereum::new_morden(), "olympic" => ethereum::new_olympic(),