From 641d824f372569046811a2a8ad3cec175280f726 Mon Sep 17 00:00:00 2001 From: warptangent Date: Thu, 23 Apr 2015 05:14:10 -0700 Subject: [PATCH] Keep memory pool consistent when stuck tx removed When a stuck tx is removed from memory pool, first remove the associated spent key images. --- src/cryptonote_core/tx_pool.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cryptonote_core/tx_pool.cpp b/src/cryptonote_core/tx_pool.cpp index 7c8a6199..5543ac64 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;