def add_all_connections(self, nodes):
    for i in range(len(nodes)):
        test_node = TestNode(self.block_store, self.tx_store)
        self.test_nodes.append(test_node)
        self.connections.append(NodeConn('127.0.0.1', p2p_port(i), nodes[i], test_node))
        test_node.add_connection(self.connections[(- 1)])
def add_all_connections(self, nodes):
    for i in range(len(nodes)):
        test_node = TestNode(self.block_store, self.tx_store)
        self.test_nodes.append(test_node)
        self.connections.append(NodeConn('127.0.0.1', p2p_port(i), nodes[i], test_node))
        test_node.add_connection(self.connections[(- 1)])