Skip to content

Commit

Permalink
Merge #11870: wallet: Remove unnecessary mempool lock in ReacceptWall…
Browse files Browse the repository at this point in the history
…etTransactions

5b25293 wallet: Remove unnecessary mempool lock in ReacceptWalletTransactions (João Barbosa)

Pull request description:

Tree-SHA512: 13b922c6c9b5ca95a77742050f449366b80bdd7819c34e7ca09af8a4bd68085f4d0c6e0cde119c403f661499f97f2c465071a8047a7d794268e8d2dfe909e6d5
  • Loading branch information
laanwj committed Dec 12, 2017
2 parents 2214954 + 5b25293 commit ef8ba7d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/wallet/wallet.cpp
Expand Up @@ -1719,11 +1719,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 ef8ba7d

Please sign in to comment.