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

eth/tracers/internal/tracertest: add missing Random to call context #30652

Merged
merged 2 commits into from
Oct 23, 2024

Conversation

islishude
Copy link
Contributor

I have a test locally, but the callTracer test always complains invalid opcode: PUSH0

if we want to test chain after the Merge, then the Random(aka prevRandao) should be not be nil

chainRules: chainConfig.Rules(blockCtx.BlockNumber, blockCtx.Random != nil, blockCtx.Time),

IsShanghai: isMerge && c.IsShanghai(num, timestamp),
IsCancun: isMerge && c.IsCancun(num, timestamp),
IsPrague: isMerge && c.IsPrague(num, timestamp),

@islishude islishude requested a review from s1na as a code owner October 22, 2024 04:33
Copy link

@namiloh namiloh left a comment

Choose a reason for hiding this comment

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

LGTM

@islishude
Copy link
Contributor Author

btw I think the isMerge param in the ChainConfig.Rules is not required actually

and ChainConfig should add IsMerge() like func isShanghai

Copy link
Contributor

@holiman holiman left a comment

Choose a reason for hiding this comment

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

LGTM

@holiman holiman added this to the 1.14.12 milestone Oct 23, 2024
@holiman holiman merged commit f8f5609 into ethereum:master Oct 23, 2024
3 checks passed
@islishude islishude deleted the eth-tracer-add-missing-random branch October 23, 2024 08:14
holiman pushed a commit that referenced this pull request Nov 19, 2024
…30652)

Fixes a configuration issue in a test-helper, so that we can do call tracing-tests post-merge
zfy0701 pushed a commit to sentioxyz/go-ethereum that referenced this pull request Dec 3, 2024
…thereum#30652)

Fixes a configuration issue in a test-helper, so that we can do call tracing-tests post-merge
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.

4 participants