aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core
diff options
context:
space:
mode:
authorwarptangent <warptangent@inbox.com>2015-04-23 05:14:10 -0700
committerwarptangent <warptangent@inbox.com>2015-04-23 07:04:36 -0700
commit641d824f372569046811a2a8ad3cec175280f726 (patch)
treee94e4378344011e842bf06ee49b9cff43cdf5be0 /src/cryptonote_core
parentAdd mempool output to daemon via command and RPC (diff)
downloadmonero-641d824f372569046811a2a8ad3cec175280f726.tar.xz
Keep memory pool consistent when stuck tx removed
When a stuck tx is removed from memory pool, first remove the associated spent key images.
Diffstat (limited to 'src/cryptonote_core')
-rw-r--r--src/cryptonote_core/tx_pool.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cryptonote_core/tx_pool.cpp b/src/cryptonote_core/tx_pool.cpp
index 7c8a61999..5543ac64f 100644
--- a/src/cryptonote_core/tx_pool.cpp
+++ b/src/cryptonote_core/tx_pool.cpp
@@ -257,6 +257,7 @@ namespace cryptonote
(tx_age > CRYPTONOTE_MEMPOOL_TX_FROM_ALT_BLOCK_LIVETIME && it->second.kept_by_block) )
{
LOG_PRINT_L1("Tx " << it->first << " removed from tx pool due to outdated, age: " << tx_age );
+ remove_transaction_keyimages(it->second.tx);
m_transactions.erase(it++);
}else
++it;