MCPcopy Create free account
hub / github.com/Bitmessage/PyBitmessage / holdPeer

Method holdPeer

src/class_objectHashHolder.py:47–48  ·  view source on GitHub ↗
(self,peerDetails)

Source from the content-addressed store, hash-verified

45 return False
46
47 def holdPeer(self,peerDetails):
48 self.collectionOfPeerLists[random.randrange(0, objectHashHolder.size)].append(peerDetails)
49
50 def hashCount(self):
51 return sum([len(x) for x in self.collectionOfHashLists if type(x) is list])

Callers 1

runMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected