> CBlockIndex::nStatus may be racy, i.e. potentially accessed by multiple threads, see [[https://github.com/bitcoin/bitcoin/pull/17161 | core#17161]]. A solution is to guard it by cs_main, along with fellow data members nFile, nDataPos and nUndoPos.
Co-authored-by: Vasil Dimov <vd@FreeBSD.org>
This concludes backport of [[https://github.com/bitcoin/bitcoin/pull/22932 | core#22932]]
https://github.com/bitcoin/bitcoin/pull/22932/commits/6ea56827842b9b2bd730edc38f3a7b1f46f6247b
Depends on D13037