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

cmd/evm: fix random in runtime config #29896

Closed
wants to merge 1 commit into from

Conversation

lyfsn
Copy link

@lyfsn lyfsn commented May 31, 2024

Otherwise, the EVM command will never enter the fork version after London.

This is due to the commit in v1.13.13: https://github.com/ethereum/go-ethereum/pull/29023/files

Signed-off-by: lyfsn <dev.wangyu@proton.me>
@@ -227,6 +227,7 @@ func runCmd(ctx *cli.Context) error {
EVMConfig: vm.Config{
Tracer: tracer,
},
Random: &genesisConfig.Mixhash,
Copy link
Member

Choose a reason for hiding this comment

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

Hmmm, any particular reason for picking Mixhash to init the random field with?

Copy link
Author

Choose a reason for hiding this comment

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

Sorry, no particular reason. I just see there are two fields in the genesis config, Mixhash and ParentHash. Their type is common.Hash, the same as Random. Any suggestions about which field should be used?

@holiman
Copy link
Contributor

holiman commented May 31, 2024

Afaik this was fixed in #29799. Do you have a "repro" showing this not to be fixed?

@lyfsn
Copy link
Author

lyfsn commented May 31, 2024

Afaik this was fixed in #29799. Do you have a "repro" showing this not to be fixed?

Sure, it's my mistake. This problem is actually fixed. Since it's not the release version, I missed testing it.

@lyfsn lyfsn closed this May 31, 2024
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.

3 participants