mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 06:43:45 +01:00
wallet: Remove unnecessary mempool lock in ReacceptWalletTransactions
This commit is contained in:
@@ -1713,11 +1713,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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user