mirror of
https://github.com/monero-project/monero.git
synced 2025-05-10 07:25:07 -04:00
core: add some locking around pool use
This commit is contained in:
parent
2c9d9519f1
commit
0263dd2d23
2 changed files with 4 additions and 1 deletions
|
@ -662,6 +662,7 @@ namespace cryptonote
|
|||
//---------------------------------------------------------------------------------
|
||||
size_t tx_memory_pool::validate(uint8_t version)
|
||||
{
|
||||
CRITICAL_REGION_LOCAL(m_transactions_lock);
|
||||
size_t n_removed = 0;
|
||||
size_t tx_size_limit = (version < 2 ? TRANSACTION_SIZE_LIMIT_V1 : TRANSACTION_SIZE_LIMIT_V2);
|
||||
for (auto it = m_transactions.begin(); it != m_transactions.end(); ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue