-
Notifications
You must be signed in to change notification settings - Fork 945
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
Add locks to forkchoice spec tests #12165
Conversation
@@ -144,9 +157,9 @@ func (bb *Builder) Check(t testing.TB, c *Check) { | |||
} | |||
if c.ProposerBoostRoot != nil { | |||
want := fmt.Sprintf("%#x", common.FromHex(*c.ProposerBoostRoot)) | |||
bb.service.ForkChoiceStore().RLock() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is there a ForkChoiceStore
and ForkChoicer
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can remove one, they are exactly the same method defined in the same file. I do not know from where they are. We should in fact try to remove them both and only export locked wrappers to forkchoice
What type of PR is this?
Fix test flakeyness
What does this PR do? Why is it needed?
Add locking to fork choice spec tests to reduce test flakiness and isolate production bugs with flakiness