diff options
author | João Barbosa <joao.paulo.barbosa@gmail.com> | 2017-12-11 23:41:51 +0000 |
---|---|---|
committer | João Barbosa <joao.paulo.barbosa@gmail.com> | 2017-12-11 23:43:31 +0000 |
commit | 5b252934362c2971e521df56c26ced56f07deb72 (patch) | |
tree | c36f01360a65153b2bd6ce8310fbf666948168ef /src/wallet | |
parent | d44535d8189ec2f0e77d445804cca60b869b24a1 (diff) |
wallet: Remove unnecessary mempool lock in ReacceptWalletTransactions
Diffstat (limited to 'src/wallet')
-rw-r--r-- | src/wallet/wallet.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index cb81ec37f5..d4e7de2e33 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -1713,11 +1713,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); CValidationState state; wtx.AcceptToMemoryPool(maxTxFee, state); } |