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

Method poissonTimeout

src/network/dandelion.py:37–42  ·  view source on GitHub ↗
(self, start=None, average=0)

Source from the content-addressed store, hash-verified

35 self.lock = RLock()
36
37 def poissonTimeout(self, start=None, average=0):
38 if start is None:
39 start = time()
40 if average == 0:
41 average = FLUFF_TRIGGER_MEAN_DELAY
42 return start + expovariate(1.0/average) + FLUFF_TRIGGER_FIXED_DELAY
43
44 def addHash(self, hashId, source=None, stream=1):
45 if not state.dandelion:

Callers 4

addHashMethod · 0.95
setHashStreamMethod · 0.95
maybeAddStemMethod · 0.95
maybeRemoveStemMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected