Changeset View
Changeset View
Standalone View
Standalone View
test/functional/feature_dbcrash.py
Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | def set_test_params(self): | ||||
# Node3 is a normal node with default args, except will mine full blocks | # Node3 is a normal node with default args, except will mine full blocks | ||||
# and non-standard txs (e.g. txs with "dust" outputs) | # and non-standard txs (e.g. txs with "dust" outputs) | ||||
self.node3_args = [ | self.node3_args = [ | ||||
"-blockmaxsize={}".format(DEFAULT_MAX_BLOCK_SIZE), "-acceptnonstdtxn"] | "-blockmaxsize={}".format(DEFAULT_MAX_BLOCK_SIZE), "-acceptnonstdtxn"] | ||||
self.extra_args = [self.node0_args, self.node1_args, | self.extra_args = [self.node0_args, self.node1_args, | ||||
self.node2_args, self.node3_args] | self.node2_args, self.node3_args] | ||||
def skip_test_if_missing_module(self): | |||||
self.skip_if_no_wallet() | |||||
def setup_network(self): | def setup_network(self): | ||||
self.add_nodes(self.num_nodes, extra_args=self.extra_args) | self.add_nodes(self.num_nodes, extra_args=self.extra_args) | ||||
self.start_nodes() | self.start_nodes() | ||||
# Leave them unconnected, we'll use submitblock directly in this test | # Leave them unconnected, we'll use submitblock directly in this test | ||||
def restart_node(self, node_index, expected_tip): | def restart_node(self, node_index, expected_tip): | ||||
"""Start up a given node id, wait for the tip to reach the given block hash, and calculate the utxo hash. | """Start up a given node id, wait for the tip to reach the given block hash, and calculate the utxo hash. | ||||
▲ Show 20 Lines • Show All 224 Lines • Show Last 20 Lines |