mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 13:03:17 +01:00
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
This commit is contained in:
commit
ef8ba7d73a
@ -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…
Reference in New Issue
Block a user