From 69775610a8ca94a14289adf4342723590371b44e Mon Sep 17 00:00:00 2001 From: 4tochka Date: Thu, 2 May 2019 18:56:07 +0400 Subject: [PATCH] connector --- pybtc/connector.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pybtc/connector.py b/pybtc/connector.py index 5c96e63..c811a97 100644 --- a/pybtc/connector.py +++ b/pybtc/connector.py @@ -630,7 +630,9 @@ class Connector: while height < max_height: if height - self.last_block_height < self.batch_limit * 10: try: - self.log.critical(str((height, processed_height, self.last_block_height))) + # self.log.critical(str((height, processed_height, self.last_block_height))) + if height < self.last_block_height: + height = self.last_block_height batch = list() h_list = list() while True: