-
Notifications
You must be signed in to change notification settings - Fork 113
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
A more informative error message when syncing from block 1 #2685
Comments
I think it's a good idea to refactor the message , to make it meaningful |
Do you know what is the actual error and what message should be printed for this specific case here? |
The error I got when trying to sync a node using
The linked pr should fix that problem. @CharlieMc0 , I was not able to replicate the exact error message you created the issue for but the recover function I added should catch any panic from initializing the state from genesis. |
Is your feature request related to a problem? Please describe.
When node operators attempt to start their node from block 1 they get an unclear error message like
panic: json: cannot unmarshal array into Go value of type map[string]json.RawMessage
Example Issue: #2682
Describe the solution you'd like
Instead, if someone attempts to start at block 1 it should give them an informative error message like
You cannot sync testnet or mainnet from block 1 using this version. You should sync your node from a snapshot
Motivation and Context
Many node operators run into this problem, get confused, and ask for help in Discord.
The text was updated successfully, but these errors were encountered: