fix complete build

This commit is contained in:
keorn 2016-11-25 11:36:25 +00:00
parent 1692c07ba6
commit a143da2cb8
2 changed files with 2 additions and 2 deletions

View File

@ -209,7 +209,7 @@ pub fn execute(cmd: RunCmd, logger: Arc<RotatingLogger>) -> Result<(), String> {
let account_provider = Arc::new(try!(prepare_account_provider(&cmd.dirs, cmd.acc_conf))); let account_provider = Arc::new(try!(prepare_account_provider(&cmd.dirs, cmd.acc_conf)));
// let the Engine access the accounts // let the Engine access the accounts
spec.engine.register_account_provider(account_provider); spec.engine.register_account_provider(account_provider.clone());
// create miner // create miner
let miner = Miner::new(cmd.miner_options, cmd.gas_pricer.into(), &spec, Some(account_provider.clone())); let miner = Miner::new(cmd.miner_options, cmd.gas_pricer.into(), &spec, Some(account_provider.clone()));

View File

@ -180,7 +180,7 @@ impl SyncProvider for EthSync {
} }
fn transactions_stats(&self) -> BTreeMap<H256, TransactionStats> { fn transactions_stats(&self) -> BTreeMap<H256, TransactionStats> {
let sync = self.handler.sync.read(); let sync = self.eth_handler.sync.read();
sync.transactions_stats() sync.transactions_stats()
.iter() .iter()
.map(|(hash, stats)| (*hash, stats.into())) .map(|(hash, stats)| (*hash, stats.into()))