mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-11 12:22:39 -03:00
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.
|
// Try to top up keypool. No-op if the wallet is locked.
|
||||||
walletInstance->TopUpKeyPool();
|
walletInstance->TopUpKeyPool();
|
||||||
|
|
||||||
|
LOCK(cs_main);
|
||||||
|
|
||||||
CBlockIndex *pindexRescan = chainActive.Genesis();
|
CBlockIndex *pindexRescan = chainActive.Genesis();
|
||||||
if (!gArgs.GetBoolArg("-rescan", false))
|
if (!gArgs.GetBoolArg("-rescan", false))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue