adjusted quorums for default EVM methods
This commit is contained in:
@@ -114,7 +114,8 @@ class DefaultEthereumMethods(
|
|||||||
|
|
||||||
override fun createQuorumFor(method: String): CallQuorum {
|
override fun createQuorumFor(method: String): CallQuorum {
|
||||||
return when {
|
return when {
|
||||||
filterMethods.contains(method) -> NotLaggingQuorum(1)
|
newFilterMethods.contains(method) -> NotLaggingQuorum(4)
|
||||||
|
withFilterIdMethods.contains(method) -> AlwaysQuorum()
|
||||||
hardcodedMethods.contains(method) -> AlwaysQuorum()
|
hardcodedMethods.contains(method) -> AlwaysQuorum()
|
||||||
firstValueMethods.contains(method) -> AlwaysQuorum()
|
firstValueMethods.contains(method) -> AlwaysQuorum()
|
||||||
anyResponseMethods.contains(method) -> NotLaggingQuorum(4)
|
anyResponseMethods.contains(method) -> NotLaggingQuorum(4)
|
||||||
@@ -131,12 +132,11 @@ class DefaultEthereumMethods(
|
|||||||
|
|
||||||
getChainSpecificMethods(chain).contains(method) -> {
|
getChainSpecificMethods(chain).contains(method) -> {
|
||||||
when (method) {
|
when (method) {
|
||||||
"eth_getBlockRange" -> NotLaggingQuorum(1)
|
"bor_getAuthor" -> NotLaggingQuorum(4)
|
||||||
"bor_getAuthor" -> NotLaggingQuorum(0)
|
|
||||||
"bor_getCurrentValidators" -> NotLaggingQuorum(0)
|
"bor_getCurrentValidators" -> NotLaggingQuorum(0)
|
||||||
"bor_getCurrentProposer" -> NotLaggingQuorum(0)
|
"bor_getCurrentProposer" -> NotLaggingQuorum(0)
|
||||||
"bor_getRootHash" -> NotLaggingQuorum(1)
|
"bor_getRootHash" -> NotLaggingQuorum(4)
|
||||||
"eth_getRootHash" -> NotLaggingQuorum(1)
|
"eth_getRootHash" -> NotLaggingQuorum(4)
|
||||||
else -> AlwaysQuorum()
|
else -> AlwaysQuorum()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -147,7 +147,6 @@ class DefaultEthereumMethods(
|
|||||||
private fun getChainSpecificMethods(chain: Chain): List<String> {
|
private fun getChainSpecificMethods(chain: Chain): List<String> {
|
||||||
return when (chain) {
|
return when (chain) {
|
||||||
Chain.OPTIMISM -> listOf(
|
Chain.OPTIMISM -> listOf(
|
||||||
"eth_getBlockRange",
|
|
||||||
"rollup_gasPrices"
|
"rollup_gasPrices"
|
||||||
)
|
)
|
||||||
Chain.POLYGON -> listOf(
|
Chain.POLYGON -> listOf(
|
||||||
|
|||||||
@@ -67,6 +67,6 @@ class DefaultEthereumMethodsSpec extends Specification {
|
|||||||
"bor_getRootHash",
|
"bor_getRootHash",
|
||||||
"bor_getSignersAtHash",
|
"bor_getSignersAtHash",
|
||||||
"eth_getRootHash"]
|
"eth_getRootHash"]
|
||||||
Chain.OPTIMISM | ["eth_getBlockRange", "rollup_gasPrices"]
|
Chain.OPTIMISM | ["rollup_gasPrices"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user