connector
This commit is contained in:
parent
ea4e807093
commit
9cb7495421
@ -601,12 +601,13 @@ class Connector:
|
|||||||
while True:
|
while True:
|
||||||
batch.append(["getblockhash", height])
|
batch.append(["getblockhash", height])
|
||||||
if len(batch) >= self.batch_limit or height >= l:
|
if len(batch) >= self.batch_limit or height >= l:
|
||||||
|
height += 1
|
||||||
break
|
break
|
||||||
height += 1
|
height += 1
|
||||||
result = await self.rpc.batch(batch)
|
result = await self.rpc.batch(batch)
|
||||||
for r in result:
|
for r in result:
|
||||||
try:
|
try:
|
||||||
self.log.warning(">>"+str((lh, r["result"])))
|
# self.log.warning(">>"+str((lh, r["result"])))
|
||||||
self.block_hashes.set(lh, r["result"])
|
self.block_hashes.set(lh, r["result"])
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user