fixup! zebrad: hack to skip alreadyverified errors
This commit is contained in:
parent
3edc1f7db4
commit
4953f21670
|
|
@ -183,11 +183,15 @@ where
|
||||||
tracing::trace!(?hash, "verified and committed block to state");
|
tracing::trace!(?hash, "verified and committed block to state");
|
||||||
}
|
}
|
||||||
Err(e) => {
|
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");
|
tracing::warn!(?e, "error downloading and verifying block");
|
||||||
continue 'sync;
|
continue 'sync;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
self.update_metrics();
|
self.update_metrics();
|
||||||
|
|
||||||
// If we have too many pending tasks, wait for some to finish.
|
// If we have too many pending tasks, wait for some to finish.
|
||||||
|
|
@ -217,7 +221,7 @@ where
|
||||||
|
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
if format!("{:?}", e).contains("AlreadyVerified {") {
|
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 {
|
} else {
|
||||||
tracing::warn!(?e, "error downloading and verifying block");
|
tracing::warn!(?e, "error downloading and verifying block");
|
||||||
continue 'sync;
|
continue 'sync;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue