aboutsummaryrefslogtreecommitdiff
path: root/src/node/blockstorage.h
diff options
context:
space:
mode:
authorJon Atack <jon@atack.com>2022-01-18 12:51:03 +0100
committerJon Atack <jon@atack.com>2022-01-25 20:43:34 +0100
commiteaeeb88768db529b5241ccd42f1e87579908b4df (patch)
tree2b9d3c6264ad0f8de7515fd044a82f4a8acda273 /src/node/blockstorage.h
parentca47b005770f71aa229ecc1f7b8146a96ff02151 (diff)
downloadbitcoin-eaeeb88768db529b5241ccd42f1e87579908b4df.tar.xz
Require IsBlockPruned() to hold mutex cs_main
Co-authored-by: Vasil Dimov <vd@FreeBSD.org>
Diffstat (limited to 'src/node/blockstorage.h')
-rw-r--r--src/node/blockstorage.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node/blockstorage.h b/src/node/blockstorage.h
index 69c97f5d56..d7c980af85 100644
--- a/src/node/blockstorage.h
+++ b/src/node/blockstorage.h
@@ -167,7 +167,7 @@ public:
};
//! Check whether the block associated with this index entry is pruned or not.
-bool IsBlockPruned(const CBlockIndex* pblockindex);
+bool IsBlockPruned(const CBlockIndex* pblockindex) EXCLUSIVE_LOCKS_REQUIRED(::cs_main);
void CleanupBlockRevFiles();