wallet: Add lock annotation for mapAddressBook

This commit is contained in:
MarcoFalke
2019-02-07 14:46:08 -05:00
parent 72d34c0edc
commit faa46475d7
7 changed files with 13 additions and 13 deletions

View File

@@ -66,7 +66,7 @@ static std::string DecodeDumpString(const std::string &str) {
return ret.str();
}
static bool GetWalletAddressesForKey(CWallet * const pwallet, const CKeyID &keyid, std::string &strAddr, std::string &strLabel)
static bool GetWalletAddressesForKey(CWallet* const pwallet, const CKeyID& keyid, std::string& strAddr, std::string& strLabel) EXCLUSIVE_LOCKS_REQUIRED(pwallet->cs_wallet)
{
bool fLabelFound = false;
CKey key;