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

Commit

Permalink
Merge pull request #3896 from ethcore/timestamp-ignore
Browse files Browse the repository at this point in the history
Allow retry for future blocks
  • Loading branch information
gavofyork committed Dec 19, 2016
2 parents 9e3cadc + d3486b4 commit 1f8a1ca
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ethcore/src/verification/queue/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,13 @@ impl<K: Kind> VerificationQueue<K> {
Ok(h)
},
Err(err) => {
self.verification.bad.lock().insert(h.clone());
match err {
// Don't mark future blocks as bad.
Error::Block(BlockError::InvalidTimestamp(ref e)) if e.max.is_some() => {},
_ => {
self.verification.bad.lock().insert(h.clone());
}
}
Err(err)
}
}
Expand Down

0 comments on commit 1f8a1ca

Please sign in to comment.