From 71efeab4c4b2ed0d9e1f7d8af28044219430ad98 Mon Sep 17 00:00:00 2001 From: 4tochka Date: Thu, 2 May 2019 19:00:25 +0400 Subject: [PATCH] connector --- pybtc/connector.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pybtc/connector.py b/pybtc/connector.py index c811a97..91f6df3 100644 --- a/pybtc/connector.py +++ b/pybtc/connector.py @@ -630,9 +630,10 @@ 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))) + if height < self.last_block_height: height = self.last_block_height + self.log.critical(str((height, processed_height, self.last_block_height))) batch = list() h_list = list() while True: