mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
When removing 'stuck' transactions, don't ignore the first tx in the pool
This commit is contained in:
parent
41f0a8fe4d
commit
1b2614ba83
1 changed files with 5 additions and 5 deletions
|
@ -488,12 +488,12 @@ namespace cryptonote
|
||||||
}
|
}
|
||||||
|
|
||||||
for (auto it = m_transactions.begin(); it != m_transactions.end(); ) {
|
for (auto it = m_transactions.begin(); it != m_transactions.end(); ) {
|
||||||
auto it2 = it++;
|
if (it->second.blob_size >= TRANSACTION_SIZE_LIMIT) {
|
||||||
if (it2->second.blob_size >= TRANSACTION_SIZE_LIMIT) {
|
LOG_PRINT_L1("Transaction " << get_transaction_hash(it->second.tx) << " is too big (" << it->second.blob_size << " bytes), removing it from pool");
|
||||||
LOG_PRINT_L1("Transaction " << get_transaction_hash(it2->second.tx) << " is too big (" << it2->second.blob_size << " bytes), removing it from pool");
|
remove_transaction_keyimages(it->second.tx);
|
||||||
remove_transaction_keyimages(it2->second.tx);
|
m_transactions.erase(it);
|
||||||
m_transactions.erase(it2);
|
|
||||||
}
|
}
|
||||||
|
it++;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ignore deserialization error
|
// Ignore deserialization error
|
||||||
|
|
Loading…
Reference in a new issue