wallet: GetLabelAddresses requires cs_wallet lock

No change in behavior, the lock is already held at call sites.
This commit is contained in:
João Barbosa 2020-08-29 15:26:39 +01:00
parent 5fb6701bdb
commit 32d036e8da
2 changed files with 2 additions and 2 deletions

View File

@ -2191,7 +2191,7 @@ void CWallet::MarkDestinationsDirty(const std::set<CTxDestination>& destinations
std::set<CTxDestination> CWallet::GetLabelAddresses(const std::string& label) const
{
LOCK(cs_wallet);
AssertLockHeld(cs_wallet);
std::set<CTxDestination> result;
for (const std::pair<const CTxDestination, CAddressBookData>& item : m_address_book)
{

View File

@ -630,7 +630,7 @@ public:
int64_t GetOldestKeyPoolTime() const;
std::set<CTxDestination> GetLabelAddresses(const std::string& label) const;
std::set<CTxDestination> GetLabelAddresses(const std::string& label) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
/**
* Marks all outputs in each one of the destinations dirty, so their cache is