From c47057de8419349b98b47158c0cdde9964adbcab Mon Sep 17 00:00:00 2001 From: KirillPamPam Date: Mon, 22 Apr 2024 14:12:49 +0400 Subject: [PATCH] Reduce lower bound interval (#458) --- .../upstream/ethereum/EthereumLowerBoundBlockDetector.kt | 2 +- .../upstream/ethereum/EthereumLowerBoundStateDetector.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum/EthereumLowerBoundBlockDetector.kt b/src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum/EthereumLowerBoundBlockDetector.kt index a58c2c116..37f1a0f15 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum/EthereumLowerBoundBlockDetector.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum/EthereumLowerBoundBlockDetector.kt @@ -18,7 +18,7 @@ class EthereumLowerBoundBlockDetector( private val recursiveLowerBound = RecursiveLowerBound(upstream, LowerBoundType.BLOCK, setOf("No block data")) override fun period(): Long { - return 5 + return 3 } override fun internalDetectLowerBound(): Flux { diff --git a/src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum/EthereumLowerBoundStateDetector.kt b/src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum/EthereumLowerBoundStateDetector.kt index 178bec3c3..53a12de53 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum/EthereumLowerBoundStateDetector.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum/EthereumLowerBoundStateDetector.kt @@ -45,7 +45,7 @@ class EthereumLowerBoundStateDetector( } override fun period(): Long { - return 5 + return 3 } override fun internalDetectLowerBound(): Flux {