From 4953f216706f2ee1c49341e9192691e916eb0e97 Mon Sep 17 00:00:00 2001 From: Henry de Valence Date: Tue, 17 Nov 2020 16:23:26 -0800 Subject: [PATCH] fixup! zebrad: hack to skip alreadyverified errors --- zebrad/src/components/sync.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/zebrad/src/components/sync.rs b/zebrad/src/components/sync.rs index 74e54bbf..d758f1c2 100644 --- a/zebrad/src/components/sync.rs +++ b/zebrad/src/components/sync.rs @@ -183,8 +183,12 @@ where 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::debug!(error = ?e, "block was already verified, possibly from a previous sync run, continuing"); + } else { + tracing::warn!(?e, "error downloading and verifying block"); + continue 'sync; + } } } } @@ -217,7 +221,7 @@ where Err(e) => { if format!("{:?}", e).contains("AlreadyVerified {") { - tracing::info!(error = ?e, "error seems like it might be already verified, this is probably fine i guess?") + tracing::debug!(error = ?e, "block was already verified, possibly from a previous sync run, continuing"); } else { tracing::warn!(?e, "error downloading and verifying block"); continue 'sync;