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

Method addHash

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

Source from the content-addressed store, hash-verified

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:
46 return
47 with self.lock:
48 self.hashMap[hashId] = Stem(
49 self.getNodeStem(source),
50 stream,
51 self.poissonTimeout())
52
53 def setHashStream(self, hashId, stream=1):
54 with self.lock:

Callers 2

_command_invMethod · 0.80

Calls 2

getNodeStemMethod · 0.95
poissonTimeoutMethod · 0.95

Tested by

no test coverage detected