connector

This commit is contained in:
4tochka 2019-05-07 18:07:51 +04:00
parent 0c3ca9588d
commit bb3207f6b2

View File

@ -48,10 +48,12 @@ class BlockLoader:
async def loading(self):
self.log.info("loading")
self.worker_tasks = [self.loop.create_task(self.start_worker(i)) for i in range(self.worker_limit)]
target_height = self.parent.node_last_block - self.parent.self.deep_sync_limit
height = self.parent.last_block_height + 1
while height < target_height:
self.log.info("height")
new_requests = 0
if self.parent.block_preload._store_size < self.parent.block_preload_cache_limit:
try: