Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/HelloZeroNet/ZeroNet
/ getHashId
Method
getHashId
src/Peer/PeerHashfield.py:55–56 ·
view source on GitHub ↗
(self, hash)
Source
from the content-addressed store, hash-verified
53
return
False
54
55
def
getHashId(self, hash):
56
return
int(hash[0:4], 16)
57
58
def
hasHash(self, hash):
59
return
int(hash[0:4], 16) in self.storage
Callers
5
verifyFiles
Method · 0.45
loadContent
Method · 0.45
isDownloaded
Method · 0.45
hashFile
Method · 0.45
testHashfield
Method · 0.45
Calls
no outgoing calls
Tested by
2
verifyFiles
Method · 0.36
testHashfield
Method · 0.36