MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / p2p

Method p2p

test/functional/test_framework/test_node.py:334–340  ·  view source on GitHub ↗

Return the first p2p connection Convenience property - most tests only use a single p2p connection to each node, so this saves having to write node.p2ps[0] many times.

(self)

Source from the content-addressed store, hash-verified

332
333 @property
334 def p2p(self):
335 """Return the first p2p connection
336
337 Convenience property - most tests only use a single p2p connection to each
338 node, so this saves having to write node.p2ps[0] many times."""
339 assert self.p2ps, self._node_msg("No p2p connection")
340 return self.p2ps[0]
341
342 def disconnect_p2ps(self):
343 """Close all p2p connections to the node."""

Callers

nothing calls this directly

Calls 1

_node_msgMethod · 0.95

Tested by

no test coverage detected