Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
18
def
blockhashstr(block_data):
19
b = CBlock()
20
b.deserialize(BytesIO(block_data), legacy=False)
21
b.calc_sha256()
22
return
b.hash
23
24
25
class
ZMQSubscriber:
Callers
1
_zmq_test
Method · 0.85
Calls
3
deserialize
Method · 0.95
CBlock
Class · 0.90
calc_sha256
Method · 0.45
Tested by
no test coverage detected