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

core: make genesis incompatibility error more explicit #14358

Merged
merged 1 commit into from
Apr 20, 2017

Conversation

karalabe
Copy link
Member

Fixes #14352 (and a lot reports about the same thing from gitter).

Previously users were allowed to reinit an already inited chain, overwriting the genesis block (and nothing else). This was deemed dangerous potentially leading to data loss, so starting from Geth 1.6.0 we rejected such attempts with an error message wrong genesis block in database (have ..., want ...). Unfortunately this error message isn't very useful for an end user, as it doesn't really say how to fix the problem.

This PR changes the error message to make it more use friendly by explicitly stating that there's already a genesis block inside the database, and that is not compatible with the one you try to reinit with.

@karalabe karalabe added this to the 1.6.1 milestone Apr 20, 2017
@karalabe karalabe requested a review from fjl April 20, 2017 11:18
@karalabe karalabe merged commit 9fc90b6 into ethereum:master Apr 20, 2017
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.

Custom Genesis file working anyone? I'm always getting "wrong genesis block in database"
2 participants