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

FxCalculator global init fix for race condition #318

Merged
merged 1 commit into from Jan 9, 2022

Conversation

madMAx43v3r
Copy link
Contributor

When Verifier::ValidateProof is called at the same time from multiple threads some will fail due to the global lookup table not being setup yet. Hence why the flag should be set after the table is created.
Now it can happen that multiple threads will setup the table in parallel, but that's fine since the output is the same.

@hoffmang9 hoffmang9 merged commit b1973a3 into Chia-Network:main Jan 9, 2022
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.

None yet

3 participants