aboutsummaryrefslogtreecommitdiffstats
path: root/core/bench_test.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2018-08-29 17:21:12 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-08-29 17:40:12 +0800
commite8f229b82ef99213f8f84b8a71f752b236024494 (patch)
tree62f4d24ddfcb9fba0573531995739bcfdbf8b143 /core/bench_test.go
parentc1c003e4ff36c22d67662ca661fc78cde850d401 (diff)
downloadgo-tangerine-e8f229b82ef99213f8f84b8a71f752b236024494.tar.gz
go-tangerine-e8f229b82ef99213f8f84b8a71f752b236024494.tar.zst
go-tangerine-e8f229b82ef99213f8f84b8a71f752b236024494.zip
cmd, core, eth, miner, params: configurable gas floor and ceil
Diffstat (limited to 'core/bench_test.go')
-rw-r--r--core/bench_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/bench_test.go b/core/bench_test.go
index 748aebe40..8d95456e9 100644
--- a/core/bench_test.go
+++ b/core/bench_test.go
@@ -111,7 +111,8 @@ func init() {
func genTxRing(naccounts int) func(int, *BlockGen) {
from := 0
return func(i int, gen *BlockGen) {
- gas := CalcGasLimit(gen.PrevBlock(i - 1))
+ block := gen.PrevBlock(i - 1)
+ gas := CalcGasLimit(block, block.GasLimit(), block.GasLimit())
for {
gas -= params.TxGas
if gas < params.TxGas {