bsc/cmd/evm/internal/t8ntool
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
..
block.go cmd: migrate to urfave/cli/v2 (#24751) 2022-06-27 18:22:36 +02:00
execution.go cmd/evm: calc base fee if parent data is present (#26051) 2022-10-28 12:25:37 +02:00
flags.go cmd: migrate to urfave/cli/v2 (#24751) 2022-06-27 18:22:36 +02:00
gen_header.go cmd/evm: add b11r tool (#23843) 2021-11-22 09:25:35 +01:00
gen_stenv.go cmd/evm: calc base fee if parent data is present (#26051) 2022-10-28 12:25:37 +02:00
transaction.go cmd: migrate to urfave/cli/v2 (#24751) 2022-06-27 18:22:36 +02:00
transition.go cmd/evm: calc base fee if parent data is present (#26051) 2022-10-28 12:25:37 +02:00
utils.go cmd: migrate to urfave/cli/v2 (#24751) 2022-06-27 18:22:36 +02:00