Browse Source

Fix for incorrect locking in GetPubKey() (keystore.cpp)

0.13
Yuri Zhykin 9 years ago
parent
commit
220f950ab1
  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