bsc state error (#539)
This commit is contained in:
@@ -43,6 +43,7 @@ class EthereumLowerBoundStateDetector(
|
||||
"load state tree: failed to load state tree", // filecoin
|
||||
"purged for block", // erigon
|
||||
"No state data", // our own error if there is "null" in response
|
||||
"state is not available", // bsc also can return this error along with "header not found"
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -169,14 +169,24 @@ class RecursiveLowerBound(
|
||||
!nonRetryableErrors.any { err -> it.message?.contains(err, true) ?: false }
|
||||
}
|
||||
.doAfterRetry {
|
||||
log.debug(
|
||||
"Error in calculation of lower block {} of upstream {}, type - {}, retry attempt - {}, message - {}",
|
||||
block,
|
||||
upstream.getId(),
|
||||
type,
|
||||
it.totalRetries(),
|
||||
it.failure().message,
|
||||
)
|
||||
if (it.totalRetries() > 30) {
|
||||
log.warn(
|
||||
"There are too much retries to calculate {} lower bound of upstream {}, " +
|
||||
"probably this error with message `{}` is not retryable, please report it to dshackle devs",
|
||||
type,
|
||||
upstream.getId(),
|
||||
it.failure().message,
|
||||
)
|
||||
} else {
|
||||
log.debug(
|
||||
"Error in calculation of lower block {} of upstream {}, type - {}, retry attempt - {}, message - {}",
|
||||
block,
|
||||
upstream.getId(),
|
||||
type,
|
||||
it.totalRetries(),
|
||||
it.failure().message,
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user