connector
This commit is contained in:
parent
71f7fc165a
commit
e4bc1e02cd
@ -293,12 +293,14 @@ class Connector:
|
|||||||
self.deep_synchronization = False
|
self.deep_synchronization = False
|
||||||
q = time.time()
|
q = time.time()
|
||||||
if self.deep_synchronization:
|
if self.deep_synchronization:
|
||||||
|
self.log.critical(str(self.last_block_height + 1))
|
||||||
h = self.block_hashes.get(self.last_block_height + 1)
|
h = self.block_hashes.get(self.last_block_height + 1)
|
||||||
if h is None:
|
if h is None:
|
||||||
h = await self.rpc.getblockhash(self.last_block_height + 1)
|
h = await self.rpc.getblockhash(self.last_block_height + 1)
|
||||||
self.loop.create_task(self.preload_block_hashes())
|
self.loop.create_task(self.preload_block_hashes())
|
||||||
else:
|
else:
|
||||||
h = await self.rpc.getblockhash(self.last_block_height + 1)
|
h = await self.rpc.getblockhash(self.last_block_height + 1)
|
||||||
|
self.log.critical(str(h))
|
||||||
self.blocks_download_time += time.time() - q
|
self.blocks_download_time += time.time() - q
|
||||||
await self._get_block_by_hash(h)
|
await self._get_block_by_hash(h)
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user