MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / blockhashstr

Function blockhashstr

test/functional/interface_zmq.py:18–22  ·  view source on GitHub ↗
(block_data)

Source from the content-addressed store, hash-verified

16
17
18def blockhashstr(block_data):
19 b = CBlock()
20 b.deserialize(BytesIO(block_data), legacy=False)
21 b.calc_sha256()
22 return b.hash
23
24
25class ZMQSubscriber:

Callers 1

_zmq_testMethod · 0.85

Calls 3

deserializeMethod · 0.95
CBlockClass · 0.90
calc_sha256Method · 0.45

Tested by

no test coverage detected