Skip to content

Commit

Permalink
Fix floor gas for create and enable spec tests (#13481)
Browse files Browse the repository at this point in the history
  • Loading branch information
somnathb1 authored Jan 17, 2025
1 parent 1d87e90 commit 03575f4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion erigon-lib/common/fixedgas/intrinsic_gas.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ func CalcIntrinsicGas(dataLen, dataNonZeroLen, authorizationsLen, accessListLen,
gas = TxGasContractCreation
} else {
gas = TxGas
floorGas7623 = TxGas
}
floorGas7623 = TxGas
// Bump the required gas by the amount of transactional data
if dataLen > 0 {
// Zero and non-zero bytes are priced differently
Expand Down
2 changes: 0 additions & 2 deletions tests/exec_spec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,9 @@ func TestExecutionSpec(t *testing.T) {
log.Root().SetHandler(log.LvlFilterHandler(log.LvlError, log.StderrHandler))

bt := new(testMatcher)
bt.skipLoad(`^`)

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

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

0 comments on commit 03575f4

Please sign in to comment.