connector

This commit is contained in:
4tochka 2019-05-01 15:45:32 +04:00
parent ea4e807093
commit 9cb7495421

View File

@ -601,12 +601,13 @@ class Connector:
while True:
batch.append(["getblockhash", height])
if len(batch) >= self.batch_limit or height >= l:
height += 1
break
height += 1
result = await self.rpc.batch(batch)
for r in result:
try:
self.log.warning(">>"+str((lh, r["result"])))
# self.log.warning(">>"+str((lh, r["result"])))
self.block_hashes.set(lh, r["result"])
except:
pass