]> Git Repo - VerusCoin.git/commitdiff
Remove cs_main lock requirement from CWallet::SyncTransaction
authorJack Grigg <[email protected]>
Thu, 19 Sep 2019 19:59:05 +0000 (20:59 +0100)
committerJack Grigg <[email protected]>
Thu, 19 Sep 2019 19:59:05 +0000 (20:59 +0100)
SetMerkleBranch was the only call underneath SyncTransaction that
required the cs_main lock.

src/wallet/wallet.cpp

index dbf292b7e10b1baf984f33ea8cf55aac880288e3..e83a1734e8b6d7291d39fc9020ffcea6421fe271 100644 (file)
@@ -1703,7 +1703,7 @@ bool CWallet::AddToWalletIfInvolvingMe(const CTransaction& tx, const CBlock* pbl
 
 void CWallet::SyncTransaction(const CTransaction& tx, const CBlock* pblock)
 {
-    LOCK2(cs_main, cs_wallet);
+    LOCK(cs_wallet);
     if (!AddToWalletIfInvolvingMe(tx, pblock, true))
         return; // Not one of ours
 
This page took 0.030954 seconds and 4 git commands to generate.