Skip to content

Commit 43a32b7

Browse files
committed
Add missing cs_lock in CreateWalletFromFile
1 parent f814a3e commit 43a32b7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/wallet/wallet.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4017,6 +4017,8 @@ CWallet* CWallet::CreateWalletFromFile(const std::string walletFile)
40174017
// Try to top up keypool. No-op if the wallet is locked.
40184018
walletInstance->TopUpKeyPool();
40194019

4020+
LOCK(cs_main);
4021+
40204022
CBlockIndex *pindexRescan = chainActive.Genesis();
40214023
if (!gArgs.GetBoolArg("-rescan", false))
40224024
{

0 commit comments

Comments
 (0)