aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-01-29 16:49:53 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-01-29 17:21:20 +0000
commiteadbdf354a3a3135fd235ce3cce47d8b89f7b279 (patch)
tree7249e374309071338b91f5c3df9e8275fb2b2fb5 /src/cryptonote_core
parentFix V1/V2 use of hard fork related parameters (diff)
downloadmonero-eadbdf354a3a3135fd235ce3cce47d8b89f7b279.tar.xz
tx_pool: fix use of invalidated iterator
Diffstat (limited to 'src/cryptonote_core')
-rw-r--r--src/cryptonote_core/tx_pool.cpp3
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;
}