Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Require WriteUndoDataForBlock() to hold mutex cs_main
Summary: Mutex cs_main is already held by the caller of WriteUndoDataForBlock(). This change is needed to require CBlockIndex::GetUndoPos() to hold cs_main and CBlockIndex::nStatus to be guarded by cs_main in the following commits without adding 2 unnecessary cs_main locks to WriteUndoDataForBlock(). This is a partial backport of [[bitcoin/bitcoin#22932 | core#22932]] bitcoin/bitcoin@2e557ce Depends on D13031 Test Plan: With clang and DEBUG: `ninja all check-all` Reviewers: #bitcoin_abc, Fabien Reviewed By: #bitcoin_abc, Fabien Differential Revision: https://reviews.bitcoinabc.org/D13032
- Loading branch information