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

fix: reorg check by GetJustifiedNumberAndHash #111

Merged
merged 3 commits into from
May 31, 2023

Conversation

setunapo
Copy link
Collaborator

@setunapo setunapo commented May 31, 2023

Description

It tried to fix: #87

Rational

GetJustifiedNumberAndHash will call snapshot, which will call GetHeader, but the current header has not been written into DB yet, so it will report error: unknown ancestor.
We can just write the header first, since it will be done no matter reorg is true or node.
And also fix a bug to get the latest inserted JustifiedNumber.
And update params/chainspecs/rialto.json according to the default QA config.

@setunapo setunapo merged commit f0ac7c5 into node-real:devel May 31, 2023
1 of 5 checks passed
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.

EROR: GetJustifiedNumberAndHash snapshot error="unknown ancestor"
2 participants