From ea332fb522c6db31245e00e9314833b8d0c1857d Mon Sep 17 00:00:00 2001 From: Vyacheslav Date: Fri, 14 Jul 2023 20:38:24 +0300 Subject: [PATCH] remove restrictive quorums for some methods where height matcher is available (#250) --- .../dshackle/upstream/calls/DefaultEthereumMethods.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/io/emeraldpay/dshackle/upstream/calls/DefaultEthereumMethods.kt b/src/main/kotlin/io/emeraldpay/dshackle/upstream/calls/DefaultEthereumMethods.kt index 4b330a86..a69045f0 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/upstream/calls/DefaultEthereumMethods.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/upstream/calls/DefaultEthereumMethods.kt @@ -73,7 +73,6 @@ class DefaultEthereumMethods( private val anyResponseMethods = listOf( "eth_gasPrice", - "eth_call", "eth_estimateGas" ) @@ -149,8 +148,9 @@ class DefaultEthereumMethods( possibleNotIndexedMethods.contains(method) -> NotNullQuorum() specialMethods.contains(method) -> { when (method) { - "eth_getTransactionCount" -> NotLaggingQuorum(0) - "eth_getBalance" -> NotLaggingQuorum(0) + "eth_call" -> AlwaysQuorum() + "eth_getTransactionCount" -> AlwaysQuorum() + "eth_getBalance" -> AlwaysQuorum() "eth_sendRawTransaction" -> BroadcastQuorum() "eth_blockNumber" -> NotLaggingQuorum(0) else -> AlwaysQuorum()