From 565884483de69db350d781c775ddc57cba807a0b Mon Sep 17 00:00:00 2001 From: furszy Date: Fri, 26 Feb 2021 18:32:39 -0300 Subject: [PATCH] wallet: removing unnecessary `mempool.cs` lock from ReacceptWalletTransactions() --- src/wallet/wallet.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 71cfd594c569b..dbaf4897c590f 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -1930,11 +1930,9 @@ void CWallet::ReacceptWalletTransactions(bool fFirstLoad) } // Try to add wallet transactions to memory pool - for (std::pair& item: mapSorted) - { + for (std::pair& item: mapSorted) { CWalletTx& wtx = *(item.second); - LOCK(mempool.cs); CValidationState state; bool fSuccess = wtx.AcceptToMemoryPool(state, false); if (!fSuccess && fFirstLoad && GetTime() - wtx.GetTxTime() > 12*60*60) {