I'm doing fuzzing on EVM implementations, and I'm usingbesu/evm-tool for testing. I found that the opcode GASLIMIT (0X45) returned hardcoded value 5000(0x1388) in:
However, according to the docs at evm-tool and genesis, the gasLimit can be set using --prestate genesis.json or --genesis genesis.json but besu/evm-tool seems to ignore the setting, while the alloc setting works fine.
Steps to Reproduce (Bug)
I try to reproduce this on the latest develop version of besu/evm-tool with docker image(digest: e79d839a699b). I also compiled the evmtool locally(commit: 7433c8c25a5c), got the same result. This the genesis.json file I provided:
Description
Hello developers!
I'm doing fuzzing on EVM implementations, and I'm using
besu/evm-tool
for testing. I found that the opcodeGASLIMIT
(0X45) returned hardcoded value 5000(0x1388) in:https://github.com/hyperledger/besu/blob/a92fdbb44c4c20416643903d9fa288ffdc4929b6/ethereum/evmtool/src/main/java/org/hyperledger/besu/evmtool/EvmToolCommand.java#L468
However, according to the docs at evm-tool and genesis, the
gasLimit
can be set using--prestate genesis.json
or--genesis genesis.json
but besu/evm-tool seems to ignore the setting, while thealloc
setting works fine.Steps to Reproduce (Bug)
besu/evm-tool
with docker image(digest: e79d839a699b). I also compiled the evmtool locally(commit: 7433c8c25a5c), got the same result. This thegenesis.json
file I provided:besu/evm-tool
with:Expected behavior:
besu/evmtool
should return0xffffff
, which is thegasLimit
set in the file genesis.json.Actual behavior:
besu/evmtool
ignored thegasLimit
setting in, returned0x1388
Frequency: 100%
Logs (if a bug)
See the results.
Versions (Add all that apply)
Thanks for your time and patience!