connector
This commit is contained in:
parent
300e7ad01c
commit
a81bce41d0
@ -663,16 +663,14 @@ class Connector:
|
|||||||
break
|
break
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
for i in range(processed_height, self.last_block_height):
|
||||||
|
self.block_preload.remove(i)
|
||||||
|
processed_height = self.last_block_height
|
||||||
if self.block_preload.len() < 40000 and \
|
if self.block_preload.len() < 40000 and \
|
||||||
height < self.last_block_height + 40000:
|
height < self.last_block_height + 40000:
|
||||||
continue
|
continue
|
||||||
# self.log.critical(str((processed_height, self.last_block_height)))
|
# self.log.critical(str((processed_height, self.last_block_height)))
|
||||||
for i in range(processed_height, self.last_block_height):
|
|
||||||
self.block_preload.remove(i)
|
|
||||||
processed_height = self.last_block_height
|
|
||||||
if self.block_preload.len() < 50000:
|
|
||||||
continue
|
|
||||||
await asyncio.sleep(10)
|
await asyncio.sleep(10)
|
||||||
# remove unused items
|
# remove unused items
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user