fixup! zebrad: hack to skip alreadyverified errors
This commit is contained in:
parent
3edc1f7db4
commit
4953f21670
|
|
@ -183,8 +183,12 @@ where
|
||||||
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::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) => {
|
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