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

Set head as finalized root (instead of archived root) on start #7167

Merged
merged 5 commits into from Sep 2, 2020

Conversation

terencechain
Copy link
Member

What type of PR is this?

Other

What does this PR do? Why is it needed?
Since #6431 the node saved the finalized state on close. There was a piece of undeleted code that still uses archived root (instead of finalized root) to initialize block chain service struct. This would still work, but after #7165, we check initial sync block is descendent of finalized block which made using archived root as head invalid.

Which issues(s) does this PR fix?

Fixes #

Other notes for review
Tested run time

@terencechain terencechain requested a review from a team as a code owner September 2, 2020 20:13
@terencechain terencechain self-assigned this Sep 2, 2020
@terencechain terencechain added Ready For Review A pull request ready for code review OK to merge labels Sep 2, 2020
@prylabs-bulldozer prylabs-bulldozer bot merged commit 0e6797d into master Sep 2, 2020
@delete-merged-branch delete-merged-branch bot deleted the set-head-to-finalized branch September 2, 2020 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready For Review A pull request ready for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants