mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-04 18:22:57 +02:00
Require CBlockIndex::RaiseValidity() to hold cs_main
This commit is contained in:
@@ -58,7 +58,7 @@ FUZZ_TARGET(chain)
|
||||
if (block_status & ~BLOCK_VALID_MASK) {
|
||||
continue;
|
||||
}
|
||||
(void)disk_block_index->RaiseValidity(block_status);
|
||||
WITH_LOCK(::cs_main, (void)disk_block_index->RaiseValidity(block_status));
|
||||
}
|
||||
|
||||
CBlockIndex block_index{block_header};
|
||||
|
||||
Reference in New Issue
Block a user