Skip to content

Commit d76f379

Browse files
committed
Fix floor gas for create and enable spec tests (#13481)
1 parent 1ed2078 commit d76f379

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

Diff for: erigon-lib/txpool/txpoolcfg/txpoolcfg.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ func CalcIntrinsicGas(dataLen, dataNonZeroLen, authorizationsLen uint64, accessL
194194
gas = fixedgas.TxGasContractCreation
195195
} else {
196196
gas = fixedgas.TxGas
197-
floorGas7623 = fixedgas.TxGas
198197
}
198+
floorGas7623 = fixedgas.TxGas
199199
// Bump the required gas by the amount of transactional data
200200
if dataLen > 0 {
201201
// Zero and non-zero bytes are priced differently

Diff for: tests/exec_spec_test.go

-2
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,9 @@ func TestExecutionSpec(t *testing.T) {
1919
log.Root().SetHandler(log.LvlFilterHandler(log.LvlError, log.StderrHandler))
2020

2121
bt := new(testMatcher)
22-
bt.skipLoad(`^`)
2322

2423
dir := filepath.Join(".", "execution-spec-tests")
2524
bt.skipLoad(`^prague/eip2935_historical_block_hashes_from_state/block_hashes/block_hashes_history.json`)
26-
// bt.skipLoad(`^cancun`)
2725
checkStateRoot := true
2826

2927
bt.walk(t, dir, func(t *testing.T, name string, test *BlockTest) {

0 commit comments

Comments
 (0)