From 3d29bb2132b81df26265a40e2c1572b6e6bf5ffc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Barbosa?= Date: Mon, 11 Dec 2017 23:41:51 +0000 Subject: [PATCH] wallet: Remove unnecessary mempool lock in ReacceptWalletTransactions zcash: cherry picked from commit 5b252934362c2971e521df56c26ced56f07deb72 zcash: https://github.com/bitcoin/bitcoin/pull/11870 --- src/wallet/wallet.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 4a39156e2f3..1cede9905a0 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -2850,11 +2850,8 @@ void CWallet::ReacceptWalletTransactions() } // 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); wtx.AcceptToMemoryPool(false); } }