Add missing cs_lock in CreateWalletFromFile

This commit is contained in:
João Barbosa 2018-01-12 00:56:27 +00:00
parent f814a3e8fa
commit 43a32b7395
1 changed files with 2 additions and 0 deletions

View File

@ -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))
{