Skip to content

Commit 5b25293

Browse files
committed
wallet: Remove unnecessary mempool lock in ReacceptWalletTransactions
1 parent d44535d commit 5b25293

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
@@ -1713,11 +1713,8 @@ void CWallet::ReacceptWalletTransactions()
17131713
}
17141714

17151715
// Try to add wallet transactions to memory pool
1716-
for (std::pair<const int64_t, CWalletTx*>& item : mapSorted)
1717-
{
1716+
for (std::pair<const int64_t, CWalletTx*>& item : mapSorted) {
17181717
CWalletTx& wtx = *(item.second);
1719-
1720-
LOCK(mempool.cs);
17211718
CValidationState state;
17221719
wtx.AcceptToMemoryPool(maxTxFee, state);
17231720
}

0 commit comments

Comments
 (0)