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 authored and niklasad1 committed Jun 7, 2018
1 parent 1318f53 commit c8877d4
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 @@ -2073,15 +2073,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 c8877d4

Please sign in to comment.