mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
Fix for incorrect locking in GetPubKey() (keystore.cpp)
This commit is contained in:
parent
04a2937357
commit
220f950ab1
@ -19,6 +19,7 @@ bool CBasicKeyStore::GetPubKey(const CKeyID &address, CPubKey &vchPubKeyOut) con
|
|||||||
{
|
{
|
||||||
CKey key;
|
CKey key;
|
||||||
if (!GetKey(address, key)) {
|
if (!GetKey(address, key)) {
|
||||||
|
LOCK(cs_KeyStore);
|
||||||
WatchKeyMap::const_iterator it = mapWatchKeys.find(address);
|
WatchKeyMap::const_iterator it = mapWatchKeys.find(address);
|
||||||
if (it != mapWatchKeys.end()) {
|
if (it != mapWatchKeys.end()) {
|
||||||
vchPubKeyOut = it->second;
|
vchPubKeyOut = it->second;
|
||||||
|
Loading…
Reference in New Issue
Block a user