From 53727c2fe7f9a59c6b7bacf57096b49195a057e1 Mon Sep 17 00:00:00 2001 From: Termina1 Date: Tue, 11 Jun 2024 18:07:26 +0300 Subject: [PATCH] update period for finalization check --- .../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 930042b6d..93c5fe4bb 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum/EthereumFinalizationDetector.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum/EthereumFinalizationDetector.kt @@ -30,7 +30,7 @@ class EthereumFinalizationDetector : FinalizationDetector { val timer = Flux.merge( Flux.just(1), - Flux.interval(blockTime.coerceAtLeast(Duration.ofSeconds(1)).multipliedBy(6)), + Flux.interval(Duration.ofSeconds(15)), ) return timer.flatMap { Flux.fromIterable(