def setup_network(self):
    extra_args = [[] for _ in range(self.num_nodes)]
    for (i, import_node) in enumerate(IMPORT_NODES, 2):
        if import_node.prune:
            extra_args[i] += ['-prune=1', '-txindex=0', '-reindex']
    self.add_nodes(self.num_nodes, extra_args, stderr=sys.stdout)
    self.start_nodes()
    for i in range(1, self.num_nodes):
        connect_nodes(self.nodes[i], 0)
def setup_network(self):
    extra_args = [[] for _ in range(self.num_nodes)]
    for (i, import_node) in enumerate(IMPORT_NODES, 2):
        if import_node.prune:
            extra_args[i] += ['-prune=1', '-txindex=0', '-reindex']
    self.add_nodes(self.num_nodes, extra_args, stderr=sys.stdout)
    self.start_nodes()
    for i in range(1, self.num_nodes):
        connect_nodes(self.nodes[i], 0)