diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-01-29 16:49:53 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-01-29 17:21:20 +0000 |
commit | eadbdf354a3a3135fd235ce3cce47d8b89f7b279 (patch) | |
tree | 7249e374309071338b91f5c3df9e8275fb2b2fb5 /src | |
parent | Fix V1/V2 use of hard fork related parameters (diff) | |
download | monero-eadbdf354a3a3135fd235ce3cce47d8b89f7b279.tar.xz |
tx_pool: fix use of invalidated iterator
Diffstat (limited to 'src')
-rw-r--r-- | src/cryptonote_core/tx_pool.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cryptonote_core/tx_pool.cpp b/src/cryptonote_core/tx_pool.cpp index 2c607fa88..2cef68a85 100644 --- a/src/cryptonote_core/tx_pool.cpp +++ b/src/cryptonote_core/tx_pool.cpp @@ -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; } |