diff options
| author | João Barbosa <[email protected]> | 2017-12-11 23:41:51 +0000 |
|---|---|---|
| committer | João Barbosa <[email protected]> | 2017-12-11 23:43:31 +0000 |
| commit | 5b252934362c2971e521df56c26ced56f07deb72 (patch) | |
| tree | c36f01360a65153b2bd6ce8310fbf666948168ef /src | |
| parent | Merge #11836: Rename rpcuser.py to rpcauth.py (diff) | |
| download | discoin-5b252934362c2971e521df56c26ced56f07deb72.tar.xz discoin-5b252934362c2971e521df56c26ced56f07deb72.zip | |
wallet: Remove unnecessary mempool lock in ReacceptWalletTransactions
Diffstat (limited to 'src')
| -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 cb81ec37f..d4e7de2e3 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); } |