MCPcopy Create free account
hub / github.com/Bitmessage/PyBitmessage / isAlreadyConnected

Method isAlreadyConnected

src/network/connectionpool.py:55–62  ·  view source on GitHub ↗
(self, nodeid)

Source from the content-addressed store, hash-verified

53 raise KeyError
54
55 def isAlreadyConnected(self, nodeid):
56 for i in self.inboundConnections.values() + self.outboundConnections.values():
57 try:
58 if nodeid == i.nodeid:
59 return True
60 except AttributeError:
61 pass
62 return False
63
64 def addConnection(self, connection):
65 if isinstance(connection, UDPSocket):

Callers 1

peerValidityChecksMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected