Skip to content

Commit 06109e8

Browse files
mxaddictalex v
authored andcommitted
Updated a lock on LoadWallet to fix a crash on wallet rescan (Existing Datadir) (#582)
1 parent f2b924e commit 06109e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wallet/walletdb.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ DBErrors CWalletDB::LoadWallet(CWallet* pwallet)
630630
DBErrors result = DB_LOAD_OK;
631631

632632
try {
633-
LOCK(pwallet->cs_wallet);
633+
LOCK2(cs_main, pwallet->cs_wallet);
634634
int nMinVersion = 0;
635635
if (Read((string)"minversion", nMinVersion))
636636
{

0 commit comments

Comments
 (0)