Allow retry for future blocks

This commit is contained in:
arkpar 2016-12-19 14:47:48 +01:00
parent 65f2d2b050
commit d3486b45c5

View File

@ -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)
}
}