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)
| 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.""" |