-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Handle Invalid Blocks in Initial Sync #3898
Comments
Do you know at what block it dies? Or, do you know how to simulate the failure? I've started a few syncs after running |
One of the syncs go to here:
|
Here's a diff... and re-trying a sync (after
|
Want me to create a PR for changing the panic to a log? Want a new flag |
This is probably move involved than panic -> log. We might want an invalid block handler |
What would the invalid block handler do? Re-try |
Ah no we dont want a flag for this, #3880 should handle most of the panics we are seeing now. This is to track the implementation of an invalid block handler. For the purposes of debugging our testnet, we panic if we receive a block that causes an invalid transition. Eventually we will want to handle any invalid blocks properly in mainnet |
This is something perhaps @farazdagi should keep in mind while designing the block processor in initial sync |
@farazdagi do your PRs deal with this issue? Do you think we can close this after your PRs are merged in? Maybe add |
I think that even the current implementation doesn't panic on invalid blocks (it just tries to re-fetch from another peer). Still, I will double check, and make sure that we have covered all the different cases of invalid blocks (not only if block's parent doesn't match any existing hashes in DB). Will assign issue to myself, and report back when I have more info. |
Currently we panic if we receive an invalid block in initial sync. Ex: It causes a transition with an invalid state root, or it has an invalid attestation,deposit,etc .
We should instead continue syncing even though the block is bad rather than panicking, Currently we panic, so as to be able to debug any potential testnet bugs more easily. This issue is to track the implementation of an invalid block handler.
The text was updated successfully, but these errors were encountered: