From f4cb0c71dea906c0546caf33b7bfd86f3485e2a4 Mon Sep 17 00:00:00 2001 From: 4tochka Date: Mon, 3 Jun 2019 10:27:47 +0400 Subject: [PATCH] connector --- pybtc/connector/connector.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pybtc/connector/connector.py b/pybtc/connector/connector.py index 54c9eac..7bbb21e 100644 --- a/pybtc/connector/connector.py +++ b/pybtc/connector/connector.py @@ -548,6 +548,7 @@ class Connector: raise RuntimeError("block transaction request timeout") tx_count = len(block["tx"]) self.total_received_tx += tx_count + self.total_received_tx_last += tx_count self.total_received_tx_time += time.time() - q rate = round(self.total_received_tx/self.total_received_tx_time) self.log.debug("Transactions received: %s [%s] received tx rate tx/s ->> %s <<" % (tx_count, time.time() - q, rate))