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

Avoid spv data race on rescanned block hashes #2210

Merged
merged 2 commits into from Mar 13, 2023
Merged

Conversation

jrick
Copy link
Member

@jrick jrick commented Mar 9, 2023

p2p.RemotePeer.Blocks performs some internal management on requested block hashes that was continuing to execute after Blocks had returned. This caused a race to be exposed by the rescan code when running in SPV mode.

Fixes #2200.

p2p.RemotePeer.Blocks performs some internal management on requested
block hashes that was continuing to execute after Blocks had returned.
This caused a race to be exposed by the rescan code when running in
SPV mode.
Copy link

@norwnd norwnd left a comment

Choose a reason for hiding this comment

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

This should address the reported race.

@jrick jrick merged commit f5f07f0 into decred:master Mar 13, 2023
2 checks passed
@jrick jrick deleted the blocksrace branch March 13, 2023 13:13
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.

race: reusing slice across different rescan iterations
3 participants