Skip to content

Commit

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

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

Pull request description:

Tree-SHA512: 13b922c6c9b5ca95a77742050f449366b80bdd7819c34e7ca09af8a4bd68085f4d0c6e0cde119c403f661499f97f2c465071a8047a7d794268e8d2dfe909e6d5
  • Loading branch information
laanwj authored and PastaPastaPasta committed Jan 22, 2020
1 parent 8673df9 commit b4f190a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/wallet/wallet.cpp
Expand Up @@ -2025,11 +2025,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 b4f190a

Please sign in to comment.