HomePhabricator

Require CBlockIndex::RaiseValidity() to hold cs_main

Description

Require CBlockIndex::RaiseValidity() to hold cs_main

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

Depends on D13033

Test Plan:
With clang and DEBUG:

ninja all check-all bitcoin-fuzzers

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D13034

Details

Provenance
PiRKAuthored on Jan 23 2023, 15:13
PiRKPushed on Jan 24 2023, 09:21
Reviewer
Restricted Project
Differential Revision
D13034: Require CBlockIndex::RaiseValidity() to hold cs_main
Parents
rABC99d5b835461c: Require CBlockIndex::GetUndoPos() to hold mutex cs_main
Branches
Unknown
Tags
Unknown