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

cmd/ronin/chaincmd: open ancient freezer when init genesis #620

Conversation

Francesco4203
Copy link
Contributor

@Francesco4203 Francesco4203 commented Oct 30, 2024

Before this PR, when initializing genesis, the ancient db is not opened for writing the genesis state, results in data inconsistency in the ancient db. Therefore, when processing the next blocks, the following error occurred

CRIT [10-30|04:53:29.422] Failed to truncate state history freezer err="out of range, tail: 0, head: 0, target: 90000"

This PR simply open the ancient db for writing genesis state when initializing it.

@huyngopt1994
Copy link
Collaborator

just be clear, we don't pass this flag in entrypoint.sh because it will use the default value is ancient.

@huyngopt1994 huyngopt1994 merged commit eaa459d into axieinfinity:path-base-implementing Oct 30, 2024
1 check failed
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.

2 participants