problem: may request balance from a lagging node
This commit is contained in:
@@ -88,8 +88,9 @@ class DefaultEthereumMethods(
|
|||||||
specialMethods.contains(method) -> {
|
specialMethods.contains(method) -> {
|
||||||
when (method) {
|
when (method) {
|
||||||
"eth_getTransactionCount" -> NonceQuorum()
|
"eth_getTransactionCount" -> NonceQuorum()
|
||||||
"eth_getBalance" -> NotLaggingQuorum(1)
|
"eth_getBalance" -> NotLaggingQuorum(0)
|
||||||
"eth_sendRawTransaction" -> BroadcastQuorum()
|
"eth_sendRawTransaction" -> BroadcastQuorum()
|
||||||
|
"eth_blockNumber" -> NotLaggingQuorum(0)
|
||||||
else -> AlwaysQuorum()
|
else -> AlwaysQuorum()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user