From bdb577bde461f37ef1cd264fd31e59828c7586b7 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 6944a8f..d3b271d 100644 --- a/src/cryptonote_core/tx_pool.cpp +++ b/src/cryptonote_core/tx_pool.cpp @@ -243,6 +243,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;