Skip to content

Introduce parameterized basefee calculation method to fix op tests#21

Closed
BrianBland wants to merge 1 commit intoclabby/op-rethfrom
brianbland/fix-basefee-tests
Closed

Introduce parameterized basefee calculation method to fix op tests#21
BrianBland wants to merge 1 commit intoclabby/op-rethfrom
brianbland/fix-basefee-tests

Conversation

@BrianBland
Copy link
Collaborator

Add new calculate_next_block_base_fee_with_block_params method to compute the new base fee given an elasticity multiplier and max change denominator, and call this with the defined constants from the pre-existing calculate_next_block_base_fee method.

This allows us to pass in custom EIP-1559 constants for testing/other purposes, which is particularly relevant to building with the optimism feature enabled, which modifies these constants and causes the computed values to differ from the expected test cases.

@BrianBland
Copy link
Collaborator Author

Closing in favor of #20

@BrianBland BrianBland closed this Jul 21, 2023
@emhane emhane deleted the brianbland/fix-basefee-tests branch September 25, 2025 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant