Skip to content

Commit

Permalink
wallet: Remove unnecessary mempool lock in ReacceptWalletTransactions
Browse files Browse the repository at this point in the history
zcash: cherry picked from commit 5b25293
zcash: bitcoin/bitcoin#11870
  • Loading branch information
promag authored and LarryRuane committed Apr 12, 2021
1 parent 3145dce commit 3d29bb2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/wallet/wallet.cpp
Expand Up @@ -2850,11 +2850,8 @@ void CWallet::ReacceptWalletTransactions()
}

// Try to add wallet transactions to memory pool
for (std::pair<const int64_t, CWalletTx*>& item : mapSorted)
{
for (std::pair<const int64_t, CWalletTx*>& item : mapSorted) {
CWalletTx& wtx = *(item.second);

LOCK(mempool.cs);
wtx.AcceptToMemoryPool(false);
}
}
Expand Down

0 comments on commit 3d29bb2

Please sign in to comment.