Skip to content

cmd/geth: fix initGenesis #31743

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

Merged
merged 1 commit into from
Apr 30, 2025
Merged

Conversation

zhiqiangxu
Copy link
Contributor

@zhiqiangxu zhiqiangxu commented Apr 29, 2025

In the latest code, if SetupGenesisBlockWithOverride returns a ConfigCompatError, it will be ignored silently by geth init.

I think it should fail out loud since the new chain config isn't actually stored.

It's introduced in this pr 3 months ago: #30907

@rjl493456442 rjl493456442 self-requested a review April 30, 2025 00:40
Copy link
Member

@rjl493456442 rjl493456442 left a comment

Choose a reason for hiding this comment

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

Thanks for catching it!

@rjl493456442 rjl493456442 added this to the 1.15.11 milestone Apr 30, 2025
@rjl493456442 rjl493456442 merged commit ba0a61b into ethereum:master Apr 30, 2025
3 of 4 checks passed
@zhiqiangxu
Copy link
Contributor Author

Thanks for catching it!

You're welcome ! Btw, could you also take a look at my another pr here ?

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.

2 participants