plugeth/cmd/evm/testdata/19
lightclient fbdeff99ce
cmd/evm: calc base fee if parent data is present (#26051)
Currently, in order to chain together sequential valid t8n transitions the caller must manually calculate the block base fee. This PR adds support for the necessary parent fee market data to calculate the base fee for the current transition.

Concretely, env is extended to accept the following:

    parentBaseFee
    parentGasUsed
    parentGasLimit

Example usage can be found in ./cmd/evm/testdata/25.

Co-authored-by: Martin Holst Swende <martin@swende.se>
2022-10-28 12:25:37 +02:00
..
alloc.json cmd/geth, cmd/evm, params: implement Arrow Glacier (EIP 4345) (#23810) 2021-10-28 22:18:14 +02:00
env.json cmd/geth, cmd/evm, params: implement Arrow Glacier (EIP 4345) (#23810) 2021-10-28 22:18:14 +02:00
exp_arrowglacier.json cmd/evm: calc base fee if parent data is present (#26051) 2022-10-28 12:25:37 +02:00
exp_grayglacier.json cmd/evm: calc base fee if parent data is present (#26051) 2022-10-28 12:25:37 +02:00
exp_london.json cmd/evm: calc base fee if parent data is present (#26051) 2022-10-28 12:25:37 +02:00
readme.md cmd, params: implement Gray Glacier hard-fork (EIP-5133) (#25088) 2022-06-15 14:10:38 +03:00
txs.json cmd/geth, cmd/evm, params: implement Arrow Glacier (EIP 4345) (#23810) 2021-10-28 22:18:14 +02:00

Difficulty calculation

This test shows how the evm t8n can be used to calculate the (ethash) difficulty, if none is provided by the caller, this time on GrayGlacier (Eip 5133).

Calculating it (with an empty set of txs) using GrayGlacier rules (and no provided unclehash for the parent block):

[user@work evm]$ ./evm t8n --input.alloc=./testdata/19/alloc.json --input.txs=./testdata/19/txs.json --input.env=./testdata/19/env.json --output.result=stdout --state.fork=GrayGlacier