HomePhabricator

Require CBlockIndex::GetUndoPos() to hold mutex cs_main

Description

Require CBlockIndex::GetUndoPos() to hold mutex cs_main

Summary:
This is a partial backport of core#22932
https://github.com/bitcoin/bitcoin/pull/22932/commits/572393448b4d32f91b92edc84b4200ab52d62422

Depends on D13032

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/D13033

Details

Provenance
PiRKAuthored on Jan 23 2023, 15:08
PiRKPushed on Jan 24 2023, 09:21
Reviewer
Restricted Project
Differential Revision
D13033: Require CBlockIndex::GetUndoPos() to hold mutex cs_main
Parents
rABC4d9bd4f787d1: Require WriteUndoDataForBlock() to hold mutex cs_main
Branches
Unknown
Tags
Unknown