Skip to content

Conversation

aureleoules
Copy link
Contributor

Fixes #22189.

The static std::multimap<uint256, FlatFilePos> mapBlocksUnknownParent; referenced in the issue was already fixed by #25571. I don't believe Chainstate references any other static variables.

@DrahtBot
Copy link
Contributor

DrahtBot commented Nov 17, 2022

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

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK jamesob, theStack

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

Conflicts

No conflicts as of last run.

@jamesob
Copy link
Contributor

jamesob commented Nov 18, 2022

Concept ACK!

@jamesob
Copy link
Contributor

jamesob commented Nov 18, 2022

ACK 07dfbb5 (jamesob/ackr/26513.1.aureleoules.make_static_nlastflush_a)

Reviewed, built, ran tests locally. Very simple, common-sense change that should
be done. Thanks!

Copy link
Contributor

@theStack theStack left a comment

Choose a reason for hiding this comment

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

Concept and code-review ACK 07dfbb5

@jamesob
Copy link
Contributor

jamesob commented Dec 7, 2022

RFM?

@fanquake fanquake merged commit 07ac7a2 into bitcoin:master Dec 8, 2022
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Dec 8, 2022
@aureleoules aureleoules deleted the 2022-11-remove-static-chainstate branch January 12, 2023 11:51
Fabcien pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Dec 18, 2023
Summary:
> Now that assumeutxo is well on the way, and multiple CChainState exist, we should review the mutable static local variables in CChainState methods. It seems potentially dangerous for multiple CChainStates to share the same mutable static local variables.

ref T3378

This is a backport of [[bitcoin/bitcoin#26513 | core#26513]]
Depends on D15001

Test Plan: `ninja all check-all`

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Maniphest Tasks: T3378

Differential Revision: https://reviews.bitcoinabc.org/D15002
@bitcoin bitcoin locked and limited conversation to collaborators Jan 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

validation: Review mutable static local variables in CChainState methods
5 participants