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

Method setHashStream

src/network/dandelion.py:53–59  ·  view source on GitHub ↗
(self, hashId, stream=1)

Source from the content-addressed store, hash-verified

51 self.poissonTimeout())
52
53 def setHashStream(self, hashId, stream=1):
54 with self.lock:
55 if hashId in self.hashMap:
56 self.hashMap[hashId] = Stem(
57 self.hashMap[hashId].child,
58 stream,
59 self.poissonTimeout())
60
61 def removeHash(self, hashId, reason="no reason specified"):
62 logging.debug("%s entering fluff mode due to %s.", ''.join('%02x'%ord(i) for i in hashId), reason)

Callers 1

handleReceivedObjectMethod · 0.80

Calls 1

poissonTimeoutMethod · 0.95

Tested by

no test coverage detected