Open phearnot opened 2 months ago
I have reproduced the same behaviour as you. The gasLimit in the header increases when target-gas-limit is absent from the cmd line. Next step is to find in the code where this calculation is done.
unassigning myself as I'm not actively looking at this right now.
*
I'm attempting to limit gas usage in a private network, but Besu seems not to honor
gasLimit
from genesis config, and instead increases gas limit up to the value configured for sepolia (0x1c9c380
). However, the docs for the--target-gas-limit
command line option state thatSteps to reproduce
I'm using the following genesis.json:
I'm starting the docker container with besu 24.8.0:
Then I attempt to manually forge the new block:
Note that gas limit has increased from
0x1000000
in genesis to0x1003fff
. Now I add--target-gas-limit=16777216
to the command line and retry:I expect besu to keep
gasLimit
when no--target-gas-limit
is set, but for some reason it does not work as expected.