Fixing parity build

This commit is contained in:
Tomusdrw 2016-02-10 14:16:42 +01:00
parent 6b0cc0c8fa
commit 31bcc541d0

View File

@ -45,7 +45,6 @@ use ethcore::spec::*;
use ethcore::client::*; use ethcore::client::*;
use ethcore::service::{ClientService, NetSyncMessage}; use ethcore::service::{ClientService, NetSyncMessage};
use ethcore::ethereum; use ethcore::ethereum;
use ethcore::spec;
use ethcore::blockchain::CacheSize; use ethcore::blockchain::CacheSize;
use ethsync::EthSync; use ethsync::EthSync;
use target_info::Target; use target_info::Target;
@ -117,7 +116,7 @@ impl Configuration {
} }
} }
fn print_version() { fn print_version(&self) {
println!("\ println!("\
Parity version {} ({}-{}-{}) Parity version {} ({}-{}-{})
Copyright 2015, 2016 Ethcore (UK) Limited 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()); ", env!("CARGO_PKG_VERSION"), Target::arch(), Target::env(), Target::os());
} }
fn get_spec() -> Spec { fn get_spec(&self) -> Spec {
match args.flag_chain.as_ref() { match self.args.flag_chain.as_ref() {
"frontier" | "mainnet" => ethereum::new_frontier(), "frontier" | "mainnet" => ethereum::new_frontier(),
"morden" | "testnet" => ethereum::new_morden(), "morden" | "testnet" => ethereum::new_morden(),
"olympic" => ethereum::new_olympic(), "olympic" => ethereum::new_olympic(),