Remove cs_main lock requirement from CWallet::SyncTransaction

SetMerkleBranch was the only call underneath SyncTransaction that
required the cs_main lock.
This commit is contained in:
Jack Grigg 2019-09-19 20:59:05 +01:00
parent d917c11572
commit 7c8111f304
No known key found for this signature in database
GPG Key ID: 9E8255172BBF9898
1 changed files with 1 additions and 1 deletions

View 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