From 43a32b739551b5a6cac8102afd52e2b9efc81726 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Barbosa?= Date: Fri, 12 Jan 2018 00:56:27 +0000 Subject: Add missing cs_lock in CreateWalletFromFile --- src/wallet/wallet.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/wallet') diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index bb7be2df33..78abd77002 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -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)) { -- cgit v1.2.3