Introduce BaseFeeCopy field in vm.BlockContext to persist BaseFee value when its lowered to 0 to preserve EVM invariant basefee < feecap in cases vm is run with NoBaseFee flag and 0 gas price.
This enables nitro to use persisted basefee value in TxProcessor hooks and ArbGasInfo precompile during eth_call, eth_estimateGas, etc
Related to NIT-2412
Introduce
BaseFeeCopy
field in vm.BlockContext to persist BaseFee value when its lowered to 0 to preserve EVM invariantbasefee < feecap
in cases vm is run with NoBaseFee flag and 0 gas price.This enables nitro to use persisted basefee value in TxProcessor hooks and ArbGasInfo precompile during eth_call, eth_estimateGas, etc
Pulled in by:-https://github.com/OffchainLabs/nitro/pull/2358