Merge pull request #3896 from ethcore/timestamp-ignore

Allow retry for future blocks
This commit is contained in:
Gav Wood 2016-12-19 15:21:05 +01:00 committed by GitHub
commit 1f8a1cac22

View File

@ -486,7 +486,13 @@ impl<K: Kind> VerificationQueue<K> {
Ok(h) Ok(h)
}, },
Err(err) => { 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) Err(err)
} }
} }