aboutsummaryrefslogtreecommitdiff
path: root/src/validation.h
diff options
context:
space:
mode:
authorCarl Dong <contact@carldong.me>2021-03-01 17:06:51 -0500
committerCarl Dong <contact@carldong.me>2021-03-03 14:56:26 -0500
commite11b6496506246882df450586acf735dabedf731 (patch)
treee5d503e5cd488b1d33c53f0227ed625d89709485 /src/validation.h
parent03f75c42e12a272057adccb6f0077e71f971eeef (diff)
downloadbitcoin-e11b6496506246882df450586acf735dabedf731.tar.xz
validation: CVerifyDB::VerifyDB: Use locking annotation
...instead of recursively locking unconditionally
Diffstat (limited to 'src/validation.h')
-rw-r--r--src/validation.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/validation.h b/src/validation.h
index ff6bac4c43..74f8541934 100644
--- a/src/validation.h
+++ b/src/validation.h
@@ -340,7 +340,7 @@ class CVerifyDB {
public:
CVerifyDB();
~CVerifyDB();
- bool VerifyDB(const CChainParams& chainparams, CChainState& active_chainstate, CCoinsView *coinsview, int nCheckLevel, int nCheckDepth);
+ bool VerifyDB(const CChainParams& chainparams, CChainState& active_chainstate, CCoinsView *coinsview, int nCheckLevel, int nCheckDepth) EXCLUSIVE_LOCKS_REQUIRED(cs_main);
};
enum DisconnectResult