always set extragas to specific value, to simplify selection (#610)
This commit is contained in:
@@ -82,7 +82,9 @@ class EthereumUpstreamSettingsDetector(
|
||||
}.flatMapMany {
|
||||
val gaslimit = String(it).drop(3).dropLast(1).toBigInteger(16) + (21182).toBigInteger()
|
||||
val labels = mutableListOf(Pair("gas-limit", gaslimit.toString(10)))
|
||||
labels.add(Pair("extra_gas_limit", gaslimit.toString(10)))
|
||||
if (gaslimit.toLong() > 590_000_000L) {
|
||||
labels.add(Pair("extra_gas_limit", 600_000_000.toString()))
|
||||
}
|
||||
Flux.fromIterable(labels)
|
||||
}.onErrorResume {
|
||||
Flux.empty()
|
||||
|
||||
Reference in New Issue
Block a user