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

Method handleLocallyGenerated

src/network/invthread.py:21–27  ·  view source on GitHub ↗
(self, stream, hashId)

Source from the content-addressed store, hash-verified

19 self.name = "InvBroadcaster"
20
21 def handleLocallyGenerated(self, stream, hashId):
22 Dandelion().addHash(hashId, stream=stream)
23 for connection in BMConnectionPool().inboundConnections.values() + \
24 BMConnectionPool().outboundConnections.values():
25 if state.dandelion and connection != Dandelion().objectChildStem(hashId):
26 continue
27 connection.objectsNewToThem[hashId] = time()
28
29 def run(self):
30 while not state.shutdown:

Callers 1

runMethod · 0.95

Calls 4

DandelionClass · 0.90
BMConnectionPoolClass · 0.90
addHashMethod · 0.80
objectChildStemMethod · 0.80

Tested by

no test coverage detected