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

Method _progress

src/inventory.py:136–140  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

134 self.hashes[x]['sendCount'] == 0))
135
136 def _progress(self):
137 with self.lock:
138 return float(sum(len(self.hashes[x]['peers'])
139 for x in self.hashes if (self.hashes[x]['created'] + self.objectWait < time.time()) or
140 self.hashes[x]['sendCount'] == 0))
141
142 def progress(self, raiseDeadline=True):
143 if self.maxLen < self._progress():

Callers 1

progressMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected