aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces
diff options
context:
space:
mode:
authorMarcoFalke <[email protected]>2019-02-08 10:35:06 -0500
committerMarcoFalke <[email protected]>2019-02-08 10:36:02 -0500
commit020695660859439c10518e6d38b308942836fa69 (patch)
tree8d6c92aa92eba25018c655639195f0fd48947c33 /src/interfaces
parentMerge #15201: net: Add missing locking annotation for vNodes. vNodes is guard... (diff)
parentwallet: Add lock annotation for mapAddressBook (diff)
downloaddiscoin-020695660859439c10518e6d38b308942836fa69.tar.xz
discoin-020695660859439c10518e6d38b308942836fa69.zip
Merge #15365: wallet: Add lock annotation for mapAddressBook
faa46475d7 wallet: Add lock annotation for mapAddressBook (MarcoFalke) Pull request description: This adds lock annotations for `mapAddressBook` and also moves one lock from inside `GetDestValues` to the caller to be in line with the other methods (`eraseDestData`, `addDestData`, ...) Tree-SHA512: cef9397523e2f5717d4a9a6b2da1fe07042484a51b3c067ae64425768637f334350a2c3db4ab7e00af99b2a587f6b656b68ee1195f6a3db6d47298d0b2b6174a
Diffstat (limited to 'src/interfaces')
-rw-r--r--src/interfaces/wallet.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/interfaces/wallet.cpp b/src/interfaces/wallet.cpp
index a2cae2a7a..82dd8a094 100644
--- a/src/interfaces/wallet.cpp
+++ b/src/interfaces/wallet.cpp
@@ -212,6 +212,7 @@ public:
}
std::vector<std::string> getDestValues(const std::string& prefix) override
{
+ LOCK(m_wallet.cs_wallet);
return m_wallet.GetDestValues(prefix);
}
void lockCoin(const COutPoint& output) override