zebrad: hack to skip alreadyverified errors

This commit is contained in:
Henry de Valence 2020-11-12 20:35:27 -08:00
parent e55392b61e
commit aa7538ab15
1 changed files with 7 additions and 2 deletions

View File

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