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

tracing: Show OptimismBaseFeeRecipient in prestate #407

Open
wants to merge 1 commit into
base: optimism
Choose a base branch
from

Conversation

karlb
Copy link
Contributor

@karlb karlb commented Oct 21, 2024

Description

The OptimismBaseFeeRecipient should show up in prestate tracing results (both the normal prestate and the diff mode prestate results) if IsOptimism.

Tests

I added one prestate diff test with Optimism turned on to show that it works correctly. This required adding Random (so that IsMerge is true) and L1CostFunc to the test block context.
I can add a second test for the plain prestate mode if you like.

Additional context

Previous discussion at https://discord.com/channels/1244729134312198194/1282997447609552986

Comment on lines +162 to +164
if env.ChainConfig.Optimism != nil {
t.lookupAccount(params.OptimismBaseFeeRecipient)
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the actual change. Everything else is just for testing.

The OptimismBaseFeeRecipient should show up in prestate tracing results
(both the normal prestate and the diff mode prestate results) if
IsOptimism.
I added one prestate diff test with Optimism turned on to show that it
works correctly. This required adding Random (so that IsMerge is true)
and L1CostFunc to the test block context.
@karlb karlb force-pushed the karlb/tracing-test-optimism-base-fee-recipient branch from f844433 to 4966438 Compare October 21, 2024 14:29
@karlb karlb marked this pull request as ready for review October 21, 2024 14:52
@karlb karlb requested a review from a team as a code owner October 21, 2024 14:52
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