Skip to content

Commit

Permalink
wallet: Remove unnecessary mempool lock in ReacceptWalletTransactions
Browse files Browse the repository at this point in the history
  • Loading branch information
promag committed Dec 11, 2017
1 parent d44535d commit 5b25293
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/wallet/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 5b25293

Please sign in to comment.