diff options
author | warptangent <warptangent@inbox.com> | 2015-04-23 05:14:10 -0700 |
---|---|---|
committer | warptangent <warptangent@inbox.com> | 2015-04-23 07:04:36 -0700 |
commit | 641d824f372569046811a2a8ad3cec175280f726 (patch) | |
tree | e94e4378344011e842bf06ee49b9cff43cdf5be0 | |
parent | Add mempool output to daemon via command and RPC (diff) | |
download | monero-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.
-rw-r--r-- | src/cryptonote_core/tx_pool.cpp | 1 |
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; |