connector
This commit is contained in:
parent
11a1af4e27
commit
616e1c97e8
@ -633,8 +633,8 @@ class Connector:
|
|||||||
|
|
||||||
if height < self.last_block_height:
|
if height < self.last_block_height:
|
||||||
height = self.last_block_height + 1
|
height = self.last_block_height + 1
|
||||||
self.log.critical(str((height, processed_height, self.last_block_height,
|
# self.log.critical(str((height, processed_height, self.last_block_height,
|
||||||
self.block_hashes.len() )))
|
# self.block_hashes.len() )))
|
||||||
batch = list()
|
batch = list()
|
||||||
h_list = list()
|
h_list = list()
|
||||||
while True:
|
while True:
|
||||||
@ -653,10 +653,10 @@ class Connector:
|
|||||||
batch.append(["getblock", r["result"], 0])
|
batch.append(["getblock", r["result"], 0])
|
||||||
h.append(lh)
|
h.append(lh)
|
||||||
except:
|
except:
|
||||||
self.log.critical(str(traceback.format_exc()))
|
pass
|
||||||
self.log.critical(str(( len(batch), )))
|
# self.log.critical(str(( len(batch), )))
|
||||||
if not batch:
|
# if not batch:
|
||||||
self.log.critical(str((h_list, result)))
|
# self.log.critical(str((h_list, result)))
|
||||||
blocks = await self.rpc.batch(batch)
|
blocks = await self.rpc.batch(batch)
|
||||||
|
|
||||||
for x,y in zip(h,blocks):
|
for x,y in zip(h,blocks):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user