remove restrictive quorums for some methods where height matcher is available (#250)

This commit is contained in:
Vyacheslav
2023-07-14 20:38:24 +03:00
committed by GitHub
parent 2031d18199
commit ea332fb522

View File

@@ -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()