[validation] Move the lock annotation from function definition to declaration

When the annotation is on the definition, it does not check call sites between
the declaration and the definition.
This commit is contained in:
Amiti Uttarwar
2021-02-16 11:32:49 -08:00
parent 92fee79dab
commit ad5f01b960
2 changed files with 3 additions and 3 deletions

View File

@@ -13,7 +13,7 @@
#include <boost/test/unit_test.hpp>
bool CheckInputScripts(const CTransaction& tx, TxValidationState &state, const CCoinsViewCache &inputs, unsigned int flags, bool cacheSigStore, bool cacheFullScriptStore, PrecomputedTransactionData& txdata, std::vector<CScriptCheck> *pvChecks);
bool CheckInputScripts(const CTransaction& tx, TxValidationState& state, const CCoinsViewCache& inputs, unsigned int flags, bool cacheSigStore, bool cacheFullScriptStore, PrecomputedTransactionData& txdata, std::vector<CScriptCheck>* pvChecks) EXCLUSIVE_LOCKS_REQUIRED(cs_main);
BOOST_AUTO_TEST_SUITE(txvalidationcache_tests)