Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
loadContent
Method · 0.80
hashFile
Method · 0.80
PeerHashfield.py
File · 0.80
testOptionalDownload
Method · 0.80
testFindOptional
Method · 0.80
testRangedFileDownload
Method · 0.80
Calls
no outgoing calls
Tested by
3
testOptionalDownload
Method · 0.64
testFindOptional
Method · 0.64
testRangedFileDownload
Method · 0.64