Skip to content

Commit

Permalink
Updated a lock on LoadWallet to fix a crash on wallet rescan (Existin…
Browse files Browse the repository at this point in the history
…g Datadir) (#582)
  • Loading branch information
mxaddict authored and alex v committed Aug 11, 2019
1 parent f2b924e commit 06109e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wallet/walletdb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ DBErrors CWalletDB::LoadWallet(CWallet* pwallet)
DBErrors result = DB_LOAD_OK;

try {
LOCK(pwallet->cs_wallet);
LOCK2(cs_main, pwallet->cs_wallet);
int nMinVersion = 0;
if (Read((string)"minversion", nMinVersion))
{
Expand Down

0 comments on commit 06109e8

Please sign in to comment.