aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-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;
}