Don't check max.

This commit is contained in:
Tomasz Drwięga 2017-12-21 16:16:55 +01:00
parent 7d4e4c7a62
commit d6f160e868
No known key found for this signature in database
GPG Key ID: D066F497E62CAF66

View File

@ -505,7 +505,7 @@ impl<K: Kind> VerificationQueue<K> {
Err(err) => {
match err {
// Don't mark future blocks as bad.
Error::Block(BlockError::TemporarilyInvalid(ref e)) if e.max.is_some() => {},
Error::Block(BlockError::TemporarilyInvalid(_)) => {},
_ => {
self.verification.bad.lock().insert(h.clone());
}