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:
parent
d917c11572
commit
7c8111f304
|
@ -1703,7 +1703,7 @@ bool CWallet::AddToWalletIfInvolvingMe(const CTransaction& tx, const CBlock* pbl
|
||||||
|
|
||||||
void CWallet::SyncTransaction(const CTransaction& tx, const CBlock* pblock)
|
void CWallet::SyncTransaction(const CTransaction& tx, const CBlock* pblock)
|
||||||
{
|
{
|
||||||
LOCK2(cs_main, cs_wallet);
|
LOCK(cs_wallet);
|
||||||
if (!AddToWalletIfInvolvingMe(tx, pblock, true))
|
if (!AddToWalletIfInvolvingMe(tx, pblock, true))
|
||||||
return; // Not one of ours
|
return; // Not one of ours
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue