connector
This commit is contained in:
parent
6e89d38f07
commit
fd858eabc0
@ -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:
|
||||
|
||||
@ -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;"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user