validation: CVerifyDB::VerifyDB: Use locking annotation

...instead of recursively locking unconditionally
This commit is contained in:
Carl Dong
2021-03-01 17:06:51 -05:00
parent 03f75c42e1
commit e11b649650
2 changed files with 3 additions and 2 deletions

View File

@@ -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