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

Save Head after pruning invalid nodes #10977

Merged
merged 2 commits into from
Jul 2, 2022
Merged

Conversation

potuz
Copy link
Contributor

@potuz potuz commented Jul 2, 2022

After pruning INVALID blocks from forkchoice, we update forkchoice's head but we do not save the new head information to store. Thus, the RPC endpoint for head returns an error because it can't find head on DB, as it was just pruned.

This was reported by Mario Vega from EF on hive testings

@potuz potuz requested a review from a team as a code owner July 2, 2022 12:53
@potuz potuz requested review from kasey, rauljordan and symbolpunk July 2, 2022 12:53
terencechain
terencechain previously approved these changes Jul 2, 2022
@prylabs-bulldozer prylabs-bulldozer bot merged commit c68f188 into develop Jul 2, 2022
@delete-merged-branch delete-merged-branch bot deleted the call_head_on_prune branch July 2, 2022 16:38
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