Browse Source

Merge #11870: wallet: Remove unnecessary mempool lock in ReacceptWalletTransactions

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

Pull request description:

Tree-SHA512: 13b922c6c9b5ca95a77742050f449366b80bdd7819c34e7ca09af8a4bd68085f4d0c6e0cde119c403f661499f97f2c465071a8047a7d794268e8d2dfe909e6d5
0.16
Wladimir J. van der Laan 7 years ago
parent
commit
ef8ba7d73a
No known key found for this signature in database
GPG Key ID: 1E4AED62986CD25D
  1. 5
      src/wallet/wallet.cpp

5
src/wallet/wallet.cpp

@ -1719,11 +1719,8 @@ void CWallet::ReacceptWalletTransactions()
} }
// Try to add wallet transactions to memory pool // 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); CWalletTx& wtx = *(item.second);
LOCK(mempool.cs);
CValidationState state; CValidationState state;
wtx.AcceptToMemoryPool(maxTxFee, state); wtx.AcceptToMemoryPool(maxTxFee, state);
} }

Loading…
Cancel
Save