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

Fixes #410

Comment on lines 162 to 170
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.

@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
@karlb karlb requested a review from protolambda October 21, 2024 14:52
@karlb karlb force-pushed the karlb/tracing-test-optimism-base-fee-recipient branch from 4966438 to 194e12b Compare January 21, 2025 13:42
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 194e12b to 6c4285a Compare January 21, 2025 14:02
@karlb
Copy link
Contributor Author

karlb commented Jan 21, 2025

I rebased the PR on the latest optimism branch. Is there anything else I can do to push this forward?

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.

State changes for fee addresses missing in prestate tracer result
1 participant