MCPcopy Index your code
hub / github.com/HelloZeroNet/ZeroNet / hasHash

Method hasHash

src/Peer/PeerHashfield.py:58–59  ·  view source on GitHub ↗
(self, hash)

Source from the content-addressed store, hash-verified

56 return int(hash[0:4], 16)
57
58 def hasHash(self, hash):
59 return int(hash[0:4], 16) in self.storage
60
61 def replaceFromBytes(self, hashfield_raw):
62 self.storage = self.createStorage()

Callers 6

loadContentMethod · 0.80
hashFileMethod · 0.80
PeerHashfield.pyFile · 0.80
testOptionalDownloadMethod · 0.80
testFindOptionalMethod · 0.80

Calls

no outgoing calls

Tested by 3

testOptionalDownloadMethod · 0.64
testFindOptionalMethod · 0.64