fixup! zebrad: hack to skip alreadyverified errors
@@ -183,11 +183,15 @@ where
tracing::trace!(?hash, "verified and committed block to state");
}
Err(e) => {
+ 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;
}
}
}
+ }
self.update_metrics();
// If we have too many pending tasks, wait for some to finish.
@@ -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;
