Merge pull request #3896 from ethcore/timestamp-ignore
Allow retry for future blocks
This commit is contained in:
commit
1f8a1cac22
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user