Merge #7913: Fix for incorrect locking in GetPubKey() (keystore.cpp)

220f950 Fix for incorrect locking in GetPubKey() (keystore.cpp) (Yuri Zhykin)
This commit is contained in:
Pieter Wuille committed 2016-04-21 13:57:07 +02:00
commit bafd075c5e
1 file changed
+1
+1
View File
@@ -19,6 +19,7 @@ bool CBasicKeyStore::GetPubKey(const CKeyID &address, CPubKey &vchPubKeyOut) con
{
CKey key;
if (!GetKey(address, key)) {
LOCK(cs_KeyStore);
WatchKeyMap::const_iterator it = mapWatchKeys.find(address);
if (it != mapWatchKeys.end()) {
vchPubKeyOut = it->second;