fixup! zebrad: hack to skip alreadyverified errors

This commit is contained in:
Henry de Valence 2020-11-17 16:23:26 -08:00 committed by Deirdre Connolly
parent 3edc1f7db4
commit 4953f21670
1 changed files with 7 additions and 3 deletions

View File

@ -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;