We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 731065b commit c626dcbCopy full SHA for c626dcb
src/wallet/crypter.h
@@ -9,6 +9,8 @@
9
#include "serialize.h"
10
#include "support/allocators/secure.h"
11
12
+#include <atomic>
13
+
14
const unsigned int WALLET_CRYPTO_KEY_SIZE = 32;
15
const unsigned int WALLET_CRYPTO_SALT_SIZE = 8;
16
const unsigned int WALLET_CRYPTO_IV_SIZE = 16;
@@ -118,7 +120,7 @@ class CCryptoKeyStore : public CBasicKeyStore
118
120
119
121
//! if fUseCrypto is true, mapKeys must be empty
122
//! if fUseCrypto is false, vMasterKey must be empty
- bool fUseCrypto;
123
+ std::atomic<bool> fUseCrypto;
124
125
//! keeps track of whether Unlock has run a thorough check before
126
bool fDecryptionThoroughlyChecked;
0 commit comments