def METHOD_NAME(self, *, num_connections=1):
    """Add a P2P connection to the node.
    Helper to connect and wait for version handshake."""
    for _ in range(num_connections):
        self.nodes[0].add_p2p_connection(P2PDataStore())