def setup_network(self, split=False):
    extra_args = [['-debug', '-prematurewitness', '-walletprematurewitness', '-walletrbf={}'.format(i)] for i in range(self.num_nodes)]
    self.nodes = start_nodes(self.num_nodes, self.options.tmpdir, extra_args)
    self.nodes[1].encryptwallet(WALLET_PASSPHRASE)
    bitcoind_processes[1].wait()
    self.nodes[1] = start_node(1, self.options.tmpdir, extra_args[1])
    self.nodes[1].walletpassphrase(WALLET_PASSPHRASE, WALLET_PASSPHRASE_TIMEOUT)
    connect_nodes_bi(self.nodes, 0, 1)
    self.is_network_split = False
    self.sync_all()
def setup_network(self, split=False):
    extra_args = [['-debug', '-prematurewitness', '-walletprematurewitness', '-walletrbf={}'.format(i)] for i in range(self.num_nodes)]
    self.nodes = start_nodes(self.num_nodes, self.options.tmpdir, extra_args)
    self.nodes[1].encryptwallet(WALLET_PASSPHRASE)
    bitcoind_processes[1].wait()
    self.nodes[1] = start_node(1, self.options.tmpdir, extra_args[1])
    self.nodes[1].walletpassphrase(WALLET_PASSPHRASE, WALLET_PASSPHRASE_TIMEOUT)
    connect_nodes_bi(self.nodes, 0, 1)
    self.is_network_split = False
    self.sync_all()