From 4911c0c333db4dd9892f920d7de315b03a72ea49 Mon Sep 17 00:00:00 2001 From: msizov Date: Thu, 18 Jul 2024 23:25:57 +0700 Subject: [PATCH] fix regexp (#528) --- .../dshackle/upstream/ethereum/EthereumFinalizationDetector.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum/EthereumFinalizationDetector.kt b/src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum/EthereumFinalizationDetector.kt index 1f6ae90e5..62fc36fa7 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum/EthereumFinalizationDetector.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum/EthereumFinalizationDetector.kt @@ -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 {