Fix bsc state bound detection (#741)

This commit is contained in:
KirillPamPam
2025-11-06 13:46:19 +04:00
committed by GitHub
parent 63d61699b2
commit a491983a87
2 changed files with 19 additions and 2 deletions

View File

@@ -16,7 +16,18 @@ import reactor.core.publisher.Mono
class EthereumLowerBoundStateDetector(
private val upstream: Upstream,
) : EthereumLowerBoundDetectorBase(upstream.getChain()) {
private val recursiveLowerBound = RecursiveLowerBound(upstream, LowerBoundType.STATE, stateErrors, lowerBounds, commonErrorPatterns)
private val recursiveLowerBound = RecursiveLowerBound(
upstream,
LowerBoundType.STATE,
stateErrors,
lowerBounds,
commonErrorPatterns.plus(
setOf(
Regex("block #\\d not found"),
Regex("state at block #\\d is pruned"),
),
),
)
@Volatile
private var supportsStateOverride: Boolean? = null
@@ -66,6 +77,12 @@ class EthereumLowerBoundStateDetector(
"No receipts data",
"No tx data",
"No block data",
"historical state not available in path scheme yet",
"historical state is not available",
"required historical state unavailable",
"state histories haven't been fully indexed yet",
"but it out-of-bounds",
"not supported",
)
}