mirror of
https://github.com/monero-project/monero.git
synced 2024-12-24 20:49:37 +00:00
tx_pool: fix use of invalidated iterator
This commit is contained in:
parent
3b1d7e03fc
commit
eadbdf354a
1 changed files with 2 additions and 1 deletions
|
@ -315,7 +315,8 @@ namespace cryptonote
|
||||||
{
|
{
|
||||||
m_txs_by_fee.erase(sorted_it);
|
m_txs_by_fee.erase(sorted_it);
|
||||||
}
|
}
|
||||||
m_transactions.erase(it++);
|
auto pit = it++;
|
||||||
|
m_transactions.erase(pit);
|
||||||
}else
|
}else
|
||||||
++it;
|
++it;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue