From 13ea200399a5665264d797c83f5f122a37d55d94 Mon Sep 17 00:00:00 2001 From: sowle Date: Tue, 30 Apr 2019 16:58:01 +0300 Subject: [PATCH] tx_pool: do not remove txs with "future" receive_time as outdated --- src/currency_core/tx_pool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/currency_core/tx_pool.cpp b/src/currency_core/tx_pool.cpp index 0012f9df..5e655b59 100644 --- a/src/currency_core/tx_pool.cpp +++ b/src/currency_core/tx_pool.cpp @@ -512,7 +512,7 @@ namespace currency return true; // maximum age check - remove too old - uint64_t tx_age = get_core_time() - tx_entry.receive_time; + int64_t tx_age = get_core_time() - tx_entry.receive_time; if ((tx_age > CURRENCY_MEMPOOL_TX_LIVETIME )) {