mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-02 01:04:43 +02:00
Require CBlockIndex::GetBlockPos() to hold mutex cs_main
This commit is contained in:
@@ -13,6 +13,8 @@ using node::UndoReadFromDisk;
|
||||
|
||||
bool ComputeFilter(BlockFilterType filter_type, const CBlockIndex* block_index, BlockFilter& filter)
|
||||
{
|
||||
LOCK(::cs_main);
|
||||
|
||||
CBlock block;
|
||||
if (!ReadBlockFromDisk(block, block_index->GetBlockPos(), Params().GetConsensus())) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user