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 race #163

Merged
merged 12 commits into from
Jan 24, 2025
Merged

Fix race #163

merged 12 commits into from
Jan 24, 2025

Conversation

ChrisSchinnerl
Copy link
Member

Fixes #162

Fixes race in handleRPCRenewContract and handleRPCRefreshContract which seems to occur due to the ephemeral contractor sharing its internal state without deep-copying.

@ChrisSchinnerl ChrisSchinnerl self-assigned this Jan 23, 2025
testutil/host.go Outdated Show resolved Hide resolved
@ChrisSchinnerl ChrisSchinnerl force-pushed the chris/fix-race branch 2 times, most recently from 71bc0b2 to 266526b Compare January 23, 2025 15:08
syncer/syncer.go Outdated Show resolved Hide resolved
syncer/syncer.go Outdated Show resolved Hide resolved
syncer/syncer.go Outdated Show resolved Hide resolved
syncer/syncer.go Outdated Show resolved Hide resolved
peterjan
peterjan previously approved these changes Jan 24, 2025
Copy link
Member

@peterjan peterjan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

syncer/syncer.go Outdated Show resolved Hide resolved
syncer/syncer.go Show resolved Hide resolved
syncer/syncer.go Show resolved Hide resolved
@ChrisSchinnerl ChrisSchinnerl merged commit 3a96ba4 into master Jan 24, 2025
9 checks passed
@ChrisSchinnerl ChrisSchinnerl deleted the chris/fix-race branch January 24, 2025 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Data race related to updateProof
4 participants