Skip to content

Commit e43a585

Browse files
committed
Merge #9771: Add missing cs_wallet lock that triggers new lock held assertion
07afcd6 Add missing cs_wallet lock that triggers new lock held assertion (Russell Yanofsky)
2 parents f8af89a + 07afcd6 commit e43a585

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
@@ -559,8 +559,8 @@ DBErrors CWalletDB::LoadWallet(CWallet* pwallet)
559559
bool fNoncriticalErrors = false;
560560
DBErrors result = DB_LOAD_OK;
561561

562+
LOCK(pwallet->cs_wallet);
562563
try {
563-
LOCK(pwallet->cs_wallet);
564564
int nMinVersion = 0;
565565
if (Read((string)"minversion", nMinVersion))
566566
{

0 commit comments

Comments
 (0)