Skip to content

rpc: Fix race in loadtxoutset #29262

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

Merged
merged 2 commits into from
Jan 18, 2024
Merged

rpc: Fix race in loadtxoutset #29262

merged 2 commits into from
Jan 18, 2024

Conversation

maflcko
Copy link
Member

@maflcko maflcko commented Jan 17, 2024

The tip may have advanced, also if it did not, there is no reason to
have two variables point to the same block.

Fixes #27596 (comment)

MarcoFalke added 2 commits January 17, 2024 16:48
The tip may have advanced, also if it did not, there is no reason to
have two variables point to the same block.
@DrahtBot
Copy link
Contributor

DrahtBot commented Jan 17, 2024

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Code Coverage

For detailed information about the code coverage, see the test coverage report.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK pablomartin4btc, BrandonOdiwuor, achow101
Approach ACK jamesob

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

@DrahtBot DrahtBot changed the title rpc: Fix race in loadtxoutset rpc: Fix race in loadtxoutset Jan 17, 2024
@jamesob
Copy link
Contributor

jamesob commented Jan 17, 2024

Approach ACK, thanks.

Copy link
Member

@pablomartin4btc pablomartin4btc left a comment

Choose a reason for hiding this comment

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

ACK 5555d8d

@DrahtBot DrahtBot requested a review from jamesob January 17, 2024 18:57
Copy link
Contributor

@BrandonOdiwuor BrandonOdiwuor left a comment

Choose a reason for hiding this comment

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

Code Review ACK 5555d8d

@achow101
Copy link
Member

Should this be backported?

@achow101
Copy link
Member

ACK 5555d8d

@maflcko
Copy link
Member Author

maflcko commented Jan 18, 2024

Should this be backported?

I don't think assumeutxo params were specified for the main chain, and a wrong RPC result output in some test cases seems harmless.

@achow101 achow101 merged commit 5f3a057 into bitcoin:master Jan 18, 2024
@maflcko maflcko deleted the 2401-rpc-race- branch January 18, 2024 18:33
Retropex pushed a commit to Retropex/bitcoin that referenced this pull request Mar 28, 2024
The tip may have advanced, also if it did not, there is no reason to
have two variables point to the same block.

Github-Pull: bitcoin#29262
Rebased-From: fa91089
Retropex pushed a commit to Retropex/bitcoin that referenced this pull request Mar 28, 2024
@bitcoin bitcoin locked and limited conversation to collaborators Jan 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants