diff options
| author | Marko Bencun <[email protected]> | 2017-07-23 23:37:56 +0200 |
|---|---|---|
| committer | Marko Bencun <[email protected]> | 2017-07-23 23:38:55 +0200 |
| commit | fe09b0197c20dc3c0a614c1a94dac708ef206743 (patch) | |
| tree | faa9bd0c0566a9eff9f1bd684ae6763b1baf3f42 /src | |
| parent | keystore GetKeys(): return result instead of writing to reference (diff) | |
| download | discoin-fe09b0197c20dc3c0a614c1a94dac708ef206743.tar.xz discoin-fe09b0197c20dc3c0a614c1a94dac708ef206743.zip | |
add missing lock to crypter GetKeys()
Issue: #10905
Diffstat (limited to 'src')
| -rw-r--r-- | src/wallet/crypter.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wallet/crypter.h b/src/wallet/crypter.h index d6f3e2772..0295004cb 100644 --- a/src/wallet/crypter.h +++ b/src/wallet/crypter.h @@ -173,6 +173,7 @@ public: bool GetPubKey(const CKeyID &address, CPubKey& vchPubKeyOut) const override; std::set<CKeyID> GetKeys() const override { + LOCK(cs_KeyStore); if (!IsCrypted()) { return CBasicKeyStore::GetKeys(); } |