Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
correct typo
Browse files Browse the repository at this point in the history
  • Loading branch information
seunlanlege committed Sep 5, 2019
1 parent c95c0e5 commit a44231a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion ethcore/client-traits/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ use trace::{
};
use common_types::data_format::DataFormat;
use vm::{LastHashes, Schedule};
use std::str::FromStr;

use common_types::snapshot::Progress;

Expand Down
5 changes: 3 additions & 2 deletions ethcore/src/client/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2638,13 +2638,14 @@ impl ImportExportBlocks for Client {

let do_import = |bytes: Vec<u8>| {
let block = Unverified::from_rlp(bytes).map_err(|_| "Invalid block rlp")?;
let number = block.header.number();
while self.queue_info().is_full() { std::thread::sleep(Duration::from_secs(1)); }
match self.import_block(block) {
Err(EthcoreError::Import(ImportError::AlreadyInChain)) => {
trace!("Skipping block #{}: already in chain.", block.number());
trace!("Skipping block #{}: already in chain.", number);
}
Err(e) => {
return Err(format!("Cannot import block #{}: {:?}", block.number(), e));
return Err(format!("Cannot import block #{}: {:?}", number, e));
},
Ok(_) => {},
}
Expand Down

0 comments on commit a44231a

Please sign in to comment.