wallet: Remove unnecessary mempool lock in ReacceptWalletTransactions

This commit is contained in:
João Barbosa committed 2017-12-11 23:43:31 +00:00
1 parent d44535d818
commit 5b25293436
1 file changed
+1 -4
+1 -4
View File
@@ -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);
}