From 4b99ae4e11787096e7d62891fea6a30b0bd210dd Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Thu, 13 Oct 2016 07:16:42 +0900 Subject: [PATCH] Fix ETA calc --- server/db.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/db.py b/server/db.py index 58a22e4..d97fcb4 100644 --- a/server/db.py +++ b/server/db.py @@ -413,7 +413,8 @@ class DB(object): tx_est = (daemon_height - self.height) * self.coin.TX_PER_BLOCK else: tx_est = ((daemon_height - self.coin.TX_COUNT_HEIGHT) - * self.coin.TX_PER_BLOCK + self.coin.TX_COUNT) + * self.coin.TX_PER_BLOCK + + (self.coin.TX_COUNT - self.tx_count)) self.logger.info('txs: {:,d} tx/sec since genesis: {:,d}, ' 'since last flush: {:,d}'