mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-27 07:14:48 +00:00
wallet: Remove unnecessary mempool lock in ReacceptWalletTransactions
This commit is contained in:
parent
d44535d818
commit
5b25293436
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user