remove restrictive quorums for some methods where height matcher is available (#250)
This commit is contained in:
@@ -73,7 +73,6 @@ class DefaultEthereumMethods(
|
|||||||
|
|
||||||
private val anyResponseMethods = listOf(
|
private val anyResponseMethods = listOf(
|
||||||
"eth_gasPrice",
|
"eth_gasPrice",
|
||||||
"eth_call",
|
|
||||||
"eth_estimateGas"
|
"eth_estimateGas"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -149,8 +148,9 @@ class DefaultEthereumMethods(
|
|||||||
possibleNotIndexedMethods.contains(method) -> NotNullQuorum()
|
possibleNotIndexedMethods.contains(method) -> NotNullQuorum()
|
||||||
specialMethods.contains(method) -> {
|
specialMethods.contains(method) -> {
|
||||||
when (method) {
|
when (method) {
|
||||||
"eth_getTransactionCount" -> NotLaggingQuorum(0)
|
"eth_call" -> AlwaysQuorum()
|
||||||
"eth_getBalance" -> NotLaggingQuorum(0)
|
"eth_getTransactionCount" -> AlwaysQuorum()
|
||||||
|
"eth_getBalance" -> AlwaysQuorum()
|
||||||
"eth_sendRawTransaction" -> BroadcastQuorum()
|
"eth_sendRawTransaction" -> BroadcastQuorum()
|
||||||
"eth_blockNumber" -> NotLaggingQuorum(0)
|
"eth_blockNumber" -> NotLaggingQuorum(0)
|
||||||
else -> AlwaysQuorum()
|
else -> AlwaysQuorum()
|
||||||
|
|||||||
Reference in New Issue
Block a user