connector

This commit is contained in:
4tochka 2019-05-10 01:24:28 +04:00
parent 6e89d38f07
commit fd858eabc0
2 changed files with 2 additions and 0 deletions

View File

@ -305,6 +305,7 @@ class Connector:
if raw_block:
q = time.time()
block = msgpack.loads(raw_block)
block["hash"]
self.blocks_decode_time += time.time() - q
if not block:

View File

@ -618,6 +618,7 @@ class BlockDeserializeTests(unittest.TestCase):
qt = time.time()
p = pickle.loads(k)
print("decoded block load", time.time() - qt)
print(p[0]["hash"])
import cProfile
# cProfile.run("import pybtc;"