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 4bcd5bb commit 968b76fCopy full SHA for 968b76f
src/wallet/wallet.cpp
@@ -3176,8 +3176,11 @@ DBErrors CWallet::LoadWallet(bool& fFirstRunRet)
3176
}
3177
3178
3179
- // This wallet is in its first run if all of these are empty
3180
- fFirstRunRet = mapKeys.empty() && mapCryptedKeys.empty() && mapWatchKeys.empty() && setWatchOnly.empty() && mapScripts.empty();
+ {
+ LOCK(cs_KeyStore);
3181
+ // This wallet is in its first run if all of these are empty
3182
+ fFirstRunRet = mapKeys.empty() && mapCryptedKeys.empty() && mapWatchKeys.empty() && setWatchOnly.empty() && mapScripts.empty();
3183
+ }
3184
3185
if (nLoadWalletRet != DBErrors::LOAD_OK)
3186
return nLoadWalletRet;
0 commit comments