Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow lowering of basefee to 0 if vm runs with NoBaseFee flag and 0 gas price #324

Merged
merged 6 commits into from
Jun 18, 2024

Conversation

ganeshvanahalli
Copy link
Contributor

@ganeshvanahalli ganeshvanahalli commented May 30, 2024

Related to NIT-2412

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

Pulled in by:-OffchainLabs/nitro#2358

Tristan-Wilson
Tristan-Wilson previously approved these changes May 31, 2024
Copy link
Member

@Tristan-Wilson Tristan-Wilson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

core/vm/evm.go Outdated Show resolved Hide resolved
@ganeshvanahalli ganeshvanahalli merged commit ed3aa85 into master Jun 18, 2024
4 of 5 checks passed
@ganeshvanahalli ganeshvanahalli deleted the allow-zeroing-blockctxbasefee branch June 18, 2024 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants