MCPcopy 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

verifyFilesMethod · 0.45
loadContentMethod · 0.45
isDownloadedMethod · 0.45
hashFileMethod · 0.45
testHashfieldMethod · 0.45

Calls

no outgoing calls

Tested by 2

verifyFilesMethod · 0.36
testHashfieldMethod · 0.36