connector

This commit is contained in:
4tochka 2019-05-02 00:12:03 +04:00
parent 799f633197
commit 6dec51520b

View File

@ -314,8 +314,12 @@ class Connector:
self.log.debug("get block by hash %s" % hash)
try:
if self.deep_synchronization:
q = time.time()
raw_block = await self.rpc.getblock(hash, 0)
self.blocks_download_time += time.time() - q
q = time.time()
block = decode_block_tx(raw_block)
self.blocks_decode_time += time.time() - q
else:
q = time.time()
block = await self.rpc.getblock(hash)