From d3486b45c598e98fbf85462b280995b46093c66d Mon Sep 17 00:00:00 2001 From: arkpar Date: Mon, 19 Dec 2016 14:47:48 +0100 Subject: [PATCH] Allow retry for future blocks --- ethcore/src/verification/queue/mod.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ethcore/src/verification/queue/mod.rs b/ethcore/src/verification/queue/mod.rs index d268b1cff..4f1e18a20 100644 --- a/ethcore/src/verification/queue/mod.rs +++ b/ethcore/src/verification/queue/mod.rs @@ -486,7 +486,13 @@ impl VerificationQueue { 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) } }