Browse Source

wallet: Remove unnecessary mempool lock in ReacceptWalletTransactions

0.16
João Barbosa 7 years ago
parent
commit
5b25293436
  1. 5
      src/wallet/wallet.cpp

5
src/wallet/wallet.cpp

@ -1713,11 +1713,8 @@ void CWallet::ReacceptWalletTransactions() @@ -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);
}

Loading…
Cancel
Save