From 4825cbeb683085ac6040ce94607bba2265088146 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 24 Apr 2018 15:32:10 +0300 Subject: [PATCH] komodo_validate_interest expiration in CTxMemPool::removeExpired --- src/txmempool.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/txmempool.cpp b/src/txmempool.cpp index d14de08b9..9dcfab346 100644 --- a/src/txmempool.cpp +++ b/src/txmempool.cpp @@ -409,7 +409,8 @@ void CTxMemPool::removeExpired(unsigned int nBlockHeight) for (indexed_transaction_set::const_iterator it = mapTx.begin(); it != mapTx.end(); it++) { const CTransaction& tx = it->GetTx(); - if (IsExpiredTx(tx, nBlockHeight)) { + if (IsExpiredTx(tx, nBlockHeight) || komodo_validate_interest(tx,chainActive.Tip()->nHeight+1,chainActive.Tip()->GetMedianTimePast() + 777,0) < 0) + { transactionsToRemove.push_back(tx); } }