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

Method run

src/network/addrthread.py:17–36  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

15 self.name = "AddrBroadcaster"
16
17 def run(self):
18 while not state.shutdown:
19 chunk = []
20 while True:
21 try:
22 data = addrQueue.get(False)
23 chunk.append((data[0], data[1]))
24 if len(data) > 2:
25 source = BMConnectionPool().getConnectionByAddr(data[2])
26 except Queue.Empty:
27 break
28 except KeyError:
29 continue
30
31 #finish
32
33 addrQueue.iterate()
34 for i in range(len(chunk)):
35 addrQueue.task_done()
36 self.stop.wait(1)

Callers

nothing calls this directly

Calls 6

BMConnectionPoolClass · 0.90
getConnectionByAddrMethod · 0.80
iterateMethod · 0.80
task_doneMethod · 0.80
waitMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected