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

Fix racy avm tx access #1349

Merged
merged 1 commit into from
Apr 14, 2023
Merged

Fix racy avm tx access #1349

merged 1 commit into from
Apr 14, 2023

Conversation

StephenButtolph
Copy link
Contributor

Why this should be merged

Fixes a data-race with avm tx fields being accessed without the context lock held after being provided to the mempool (with the context lock held).

How this works

Fetches the ID before providing the tx to the mempool, so the caller still has sole ownership of the struct.

How this was tested

CI

@StephenButtolph StephenButtolph added bug Something isn't working vm This involves virtual machines labels Apr 14, 2023
@StephenButtolph StephenButtolph added this to the v1.10.1 milestone Apr 14, 2023
@StephenButtolph StephenButtolph self-assigned this Apr 14, 2023
@StephenButtolph StephenButtolph merged commit de27d17 into dev Apr 14, 2023
@StephenButtolph StephenButtolph deleted the fix-racy-tx-access branch April 14, 2023 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working vm This involves virtual machines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants