fix regexp (#528)

This commit is contained in:
msizov
2024-07-18 23:25:57 +07:00
committed by GitHub
parent 6a1eae8516
commit 4911c0c333

View File

@@ -65,7 +65,7 @@ class EthereumFinalizationDetector : FinalizationDetector {
.getIngressReader()
.read(req)
.onErrorResume {
if (it.message != null && it.message!!.matches(Regex("(bad request|block not found|Unknown block|tag not supported on pre-merge network)"))) {
if (it.message != null && it.message!!.matches(Regex("(.*bad request.*|.*block not found.*|.*Unknown block.*|.*tag not supported on pre-merge network.*)"))) {
log.warn("Can't retrieve tagged block, finalization detector for upstream ${upstream.getId()} $chain tag $type disabled")
disableDetector[type] = true
} else {