-
Notifications
You must be signed in to change notification settings - Fork 21
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
Check the error handling next to postdata_metadata.json #182
Comments
Go through one more case reported in Discord and updated the issue. |
Both of these have been addressed already with
A corrupted |
This happened to me once; for the record, #193 is not a satisfactory workaround because it takes a very, very, very, very long time for large data sizes. |
@lrettig we just recently merged #231 which will land in the node with the next version. This will prevent If however it is already missing, I don't see a better / faster way to regenerate the file. #193 should already be significantly faster than a re-init because it only needs to do one pass over the data to find the nonce again. This will take at most as long as generating a proof (so at most 12 hours if your node is set up to be able to generate a proof within the cycle gap). |
@lrettig, it shouldn't take that long to find the lost VRF nonce. It's basically limited by disk read speed only. |
With the atomic update of the |
Rationale
There are claims in the community that after initialization
postdata_metadata.json
was corrupted or empty.Some say that it happened because of running out of disk space, but some Users do not have any problems with disk space. So it seems that in case PoS initialization fails for some reason — then it breaks everything.
That means:
We need to
So if
postdata_metadata.json
is corrupted/empty, while there is nopostdata_N.bin
— it can just recreate everything.If there are some post data already generate — then it is a more complicated case and most likely we need the User's attention to decide what to do with it.
For example, let's say we cannot write valid JSON or remove an inconsistent file because User unplugged his external hard drive — then the Node should not crash if no PoS data generated yet. Just recreated everything.
The text was updated successfully, but these errors were encountered: