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

Commit

Permalink
ethcore: fix ancient block error msg handling (#8832)
Browse files Browse the repository at this point in the history
  • Loading branch information
andresilva committed Jun 18, 2018
1 parent 771c7d9 commit 9475dc1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ethcore/src/client/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2010,15 +2010,16 @@ impl IoClient for Client {
let first = queued.write().1.pop_front();
if let Some((header, block_bytes, receipts_bytes)) = first {
let hash = header.hash();
client.importer.import_old_block(
let result = client.importer.import_old_block(
&header,
&block_bytes,
&receipts_bytes,
&**client.db.read(),
&*client.chain.read()
).ok().map_or((), |e| {
&*client.chain.read(),
);
if let Err(e) = result {
error!(target: "client", "Error importing ancient block: {}", e);
});
}
// remove from pending
queued.write().0.remove(&hash);
} else {
Expand Down

0 comments on commit 9475dc1

Please sign in to comment.