-
-
Notifications
You must be signed in to change notification settings - Fork 291
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
head and reorg event not always emitted #5494
Comments
Sections of code affected by bug
Potential SolutionWill refactoring code in The new function could be called Other notesShould the call to |
@matthewkeil will DM @dapplion to discuss :) |
ideaconsider creating a type that selected the safe no mutate methods from the forkchoice as |
unassigning @matthewkeil for now, feel free to reassign if its being worked on |
This is rated as a "high" priority because it affects the events api |
|
this.chain.recomputeForkChoiceHead()
is called in multiple places beyond importBlock. The importBlock assumes that recomputeForkChoiceHead is only called there, so the head and reorg events are only emitted for head recomputed thereAlso the strong reference to the head state is only set on the importBlock flow, so there's a risk the node gets stuck if the head changes outside of importBlock
The text was updated successfully, but these errors were encountered: