From e3c26b2573c75850827558daf5f04594c1360296 Mon Sep 17 00:00:00 2001 From: Gavin Andresen Date: Wed, 31 Aug 2011 14:00:41 -0400 Subject: SetCrypted() obtains keystore lock, to be safe. --- src/keystore.h | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/keystore.h') diff --git a/src/keystore.h b/src/keystore.h index d1e4985d5d..bbfac83d1f 100644 --- a/src/keystore.h +++ b/src/keystore.h @@ -65,15 +65,7 @@ private: bool fUseCrypto; protected: - bool SetCrypted() - { - if (fUseCrypto) - return true; - if (!mapKeys.empty()) - return false; - fUseCrypto = true; - return true; - } + bool SetCrypted(); // will encrypt previously unencrypted keys bool EncryptKeys(CKeyingMaterial& vMasterKeyIn); -- cgit v1.2.3