Skip to content

Commit ef8ba7d

Browse files
committed
Merge #11870: wallet: Remove unnecessary mempool lock in ReacceptWalletTransactions
5b25293 wallet: Remove unnecessary mempool lock in ReacceptWalletTransactions (João Barbosa) Pull request description: Tree-SHA512: 13b922c6c9b5ca95a77742050f449366b80bdd7819c34e7ca09af8a4bd68085f4d0c6e0cde119c403f661499f97f2c465071a8047a7d794268e8d2dfe909e6d5
2 parents 2214954 + 5b25293 commit ef8ba7d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/wallet/wallet.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1719,11 +1719,8 @@ void CWallet::ReacceptWalletTransactions()
17191719
}
17201720

17211721
// Try to add wallet transactions to memory pool
1722-
for (std::pair<const int64_t, CWalletTx*>& item : mapSorted)
1723-
{
1722+
for (std::pair<const int64_t, CWalletTx*>& item : mapSorted) {
17241723
CWalletTx& wtx = *(item.second);
1725-
1726-
LOCK(mempool.cs);
17271724
CValidationState state;
17281725
wtx.AcceptToMemoryPool(maxTxFee, state);
17291726
}

0 commit comments

Comments
 (0)