connector

This commit is contained in:
4tochka 2019-05-10 18:45:28 +04:00
parent cd6b8fc088
commit fc1edf1707

View File

@ -210,11 +210,11 @@ class Worker:
t = 0 t = 0
batch = list() batch = list()
h_list = list() h_list = list()
rpc_batch_limit = 50 # rpc_batch_limit = 50
while True: while True:
batch.append(["getblockhash", height]) batch.append(["getblockhash", height])
h_list.append(height) h_list.append(height)
if len(batch) >= rpc_batch_limit: if len(batch) >= self.rpc_batch_limit:
height += 1 height += 1
break break
height += 1 height += 1