aboutsummaryrefslogtreecommitdiff
path: root/src/txdb.h
diff options
context:
space:
mode:
authorJon Atack <jon@atack.com>2022-01-28 20:25:50 +0100
committerJon Atack <jon@atack.com>2022-01-28 20:52:53 +0100
commit20276ca5d124285bdd1bda4cd777ca186b378555 (patch)
tree5c326059e1c15c802cda0969a52e1209f60d2166 /src/txdb.h
parentd4e92d843650b0480b86d15ce46ed02b6fd9b5be (diff)
downloadbitcoin-20276ca5d124285bdd1bda4cd777ca186b378555.tar.xz
Replace lock with thread safety annotation in CBlockTreeDB::LoadBlockIndexGuts()
Diffstat (limited to 'src/txdb.h')
-rw-r--r--src/txdb.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/txdb.h b/src/txdb.h
index d1f47719c4..e70f3cd1f2 100644
--- a/src/txdb.h
+++ b/src/txdb.h
@@ -86,7 +86,8 @@ public:
void ReadReindexing(bool &fReindexing);
bool WriteFlag(const std::string &name, bool fValue);
bool ReadFlag(const std::string &name, bool &fValue);
- bool LoadBlockIndexGuts(const Consensus::Params& consensusParams, std::function<CBlockIndex*(const uint256&)> insertBlockIndex);
+ bool LoadBlockIndexGuts(const Consensus::Params& consensusParams, std::function<CBlockIndex*(const uint256&)> insertBlockIndex)
+ EXCLUSIVE_LOCKS_REQUIRED(::cs_main);
};
std::optional<bilingual_str> CheckLegacyTxindex(CBlockTreeDB& block_tree_db);