tx_pool: fix use of invalidated iterator

This commit is contained in:
moneromooo-monero 2016-01-29 16:49:53 +00:00
parent 3b1d7e03fc
commit eadbdf354a
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3
1 changed files with 2 additions and 1 deletions

View File

@ -315,7 +315,8 @@ namespace cryptonote
{
m_txs_by_fee.erase(sorted_it);
}
m_transactions.erase(it++);
auto pit = it++;
m_transactions.erase(pit);
}else
++it;
}