Add missing cs_lock in CreateWalletFromFile
This commit is contained in:
parent
f814a3e8fa
commit
43a32b7395
1 changed files with 2 additions and 0 deletions
|
@ -4017,6 +4017,8 @@ CWallet* CWallet::CreateWalletFromFile(const std::string walletFile)
|
|||
// Try to top up keypool. No-op if the wallet is locked.
|
||||
walletInstance->TopUpKeyPool();
|
||||
|
||||
LOCK(cs_main);
|
||||
|
||||
CBlockIndex *pindexRescan = chainActive.Genesis();
|
||||
if (!gArgs.GetBoolArg("-rescan", false))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue