MCPcopy Index your code
hub / github.com/Bitmessage/PyBitmessage / expire

Method expire

src/network/dandelion.py:122–129  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

120 return self.nodeMap[node]
121
122 def expire(self):
123 with self.lock:
124 deadline = time()
125 # only expire those that have a child node, i.e. those without a child not will stick around
126 toDelete = [[v.stream, k, v.child] for k, v in self.hashMap.iteritems() if v.timeout < deadline and v.child]
127 for row in toDelete:
128 self.removeHash(row[1], 'expiration')
129 invQueue.put((row[0], row[1], row[2]))
130
131 def reRandomiseStems(self):
132 with self.lock:

Callers 1

runMethod · 0.80

Calls 2

removeHashMethod · 0.95
putMethod · 0.80

Tested by

no test coverage detected