From 57acb72ea3d4d2eec38f2c62c418c072f8a48373 Mon Sep 17 00:00:00 2001 From: 4tochka Date: Wed, 1 May 2019 13:47:48 +0400 Subject: [PATCH] connector --- pybtc/connector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pybtc/connector.py b/pybtc/connector.py index e97be76..a926ab0 100644 --- a/pybtc/connector.py +++ b/pybtc/connector.py @@ -581,7 +581,7 @@ class Connector: batch = list() while True: batch.append(["getblockhash", height]) - if len(batch) >= self.batch_limit or height >= max_height: + if len(batch) >= self.batch_limit * 2 or height >= max_height: break height += 1 result = await self.rpc.batch(batch)