From aa7538ab15bbb08c36dd8ffdbf509f705947ca0d Mon Sep 17 00:00:00 2001 From: Henry de Valence Date: Thu, 12 Nov 2020 20:35:27 -0800 Subject: [PATCH] zebrad: hack to skip alreadyverified errors --- zebrad/src/components/sync.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/zebrad/src/components/sync.rs b/zebrad/src/components/sync.rs index 6646af7b..74e54bbf 100644 --- a/zebrad/src/components/sync.rs +++ b/zebrad/src/components/sync.rs @@ -214,9 +214,14 @@ where Ok(hash) => { tracing::trace!(?hash, "verified and committed block to state"); } + Err(e) => { - tracing::warn!(?e, "error downloading and verifying block"); - continue 'sync; + if format!("{:?}", e).contains("AlreadyVerified {") { + tracing::info!(error = ?e, "error seems like it might be already verified, this is probably fine i guess?") + } else { + tracing::warn!(?e, "error downloading and verifying block"); + continue 'sync; + } } } self.update_metrics();