zebrad: hack to skip alreadyverified errors
This commit is contained in:
parent
e55392b61e
commit
aa7538ab15
|
|
@ -214,9 +214,14 @@ where
|
||||||
Ok(hash) => {
|
Ok(hash) => {
|
||||||
tracing::trace!(?hash, "verified and committed block to state");
|
tracing::trace!(?hash, "verified and committed block to state");
|
||||||
}
|
}
|
||||||
|
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
tracing::warn!(?e, "error downloading and verifying block");
|
if format!("{:?}", e).contains("AlreadyVerified {") {
|
||||||
continue 'sync;
|
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();
|
self.update_metrics();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue