From cca8593a48bd15a3fdb3c9333844fe3bd2e74090 Mon Sep 17 00:00:00 2001 From: Igor Artamonov Date: Sun, 24 May 2020 20:16:14 -0400 Subject: [PATCH] problem: may request balance from a lagging node --- .../dshackle/upstream/calls/DefaultEthereumMethods.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 4365e3ab..5e2b04b5 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/upstream/calls/DefaultEthereumMethods.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/upstream/calls/DefaultEthereumMethods.kt @@ -88,8 +88,9 @@ class DefaultEthereumMethods( specialMethods.contains(method) -> { when (method) { "eth_getTransactionCount" -> NonceQuorum() - "eth_getBalance" -> NotLaggingQuorum(1) + "eth_getBalance" -> NotLaggingQuorum(0) "eth_sendRawTransaction" -> BroadcastQuorum() + "eth_blockNumber" -> NotLaggingQuorum(0) else -> AlwaysQuorum() } }