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

Could not generate historical state, pre state can't be nil #5611

Closed
terencechain opened this issue Apr 24, 2020 · 3 comments · Fixed by #5613
Closed

Could not generate historical state, pre state can't be nil #5611

terencechain opened this issue Apr 24, 2020 · 3 comments · Fixed by #5613
Assignees
Labels
Bug Something isn't working

Comments

@terencechain
Copy link
Member

🐞 Bug Report

Description

Reported by Peter from Bitfly:

time="2020-04-24 15:30:08" level=error msg="could not regenerate historical states, please retry: pre state can't be nil" prefix=main
@terencechain terencechain self-assigned this Apr 24, 2020
@terencechain terencechain added the Bug Something isn't working label Apr 24, 2020
@terencechain
Copy link
Member Author

Looking at this now

@terencechain
Copy link
Member Author

Reproduced around slot 43520, looks like one block's parent was > 64 slots old. Retry with extending the cache size from 2 epochs to 3 epochs

[2020-04-24 11:51:45]  INFO Saved historical state archivedStateSlot=42496 currentArchivedIndex/totalArchivedIndices=165/189
[2020-04-24 11:51:52]  INFO Saved historical state archivedStateSlot=43008 currentArchivedIndex/totalArchivedIndices=167/189
[2020-04-24 11:51:58]  INFO Saved historical state archivedStateSlot=43520 currentArchivedIndex/totalArchivedIndices=169/189
[2020-04-24 11:52:02] ERROR main: could not regenerate historical states, please retry: pre state can't be nil

@terencechain
Copy link
Member Author

Found the problem. The block at slot 43772 built on top of pre state of slot 43693. Will increase the cache size to 80. Verified it solved the problem. Will open a PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant