Browse Source

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

220f950 Fix for incorrect locking in GetPubKey() (keystore.cpp) (Yuri Zhykin)
0.13
Pieter Wuille 9 years ago
parent
commit
bafd075c5e
No known key found for this signature in database
GPG Key ID: DBA1A67379A1A931
  1. 1
      src/keystore.cpp

1
src/keystore.cpp

@ -19,6 +19,7 @@ bool CBasicKeyStore::GetPubKey(const CKeyID &address, CPubKey &vchPubKeyOut) con @@ -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;

Loading…
Cancel
Save