Changeset View
Changeset View
Standalone View
Standalone View
test/functional/dbcrash.py
Show First 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | def set_test_params(self): | ||||
# Set different crash ratios and cache sizes. Note that not all of | # Set different crash ratios and cache sizes. Note that not all of | ||||
# -dbcache goes to pcoinsTip. | # -dbcache goes to pcoinsTip. | ||||
self.node0_args = ["-dbcrashratio=8", "-dbcache=4"] + self.base_args | self.node0_args = ["-dbcrashratio=8", "-dbcache=4"] + self.base_args | ||||
self.node1_args = ["-dbcrashratio=16", "-dbcache=8"] + self.base_args | self.node1_args = ["-dbcrashratio=16", "-dbcache=8"] + self.base_args | ||||
self.node2_args = ["-dbcrashratio=24", "-dbcache=16"] + self.base_args | self.node2_args = ["-dbcrashratio=24", "-dbcache=16"] + self.base_args | ||||
# 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 | ||||
self.node3_args = ["-blockmaxsize=32000000"] | self.node3_args = ["-blockmaxsize=32000000", | ||||
"-deprecatedrpc=signrawtransaction"] | |||||
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 setup_network(self): | def setup_network(self): | ||||
# Need a bit of extra time for the nodes to start up for this test | # Need a bit of extra time for the nodes to start up for this test | ||||
self.add_nodes(self.num_nodes, extra_args=self.extra_args, timewait=90) | self.add_nodes(self.num_nodes, extra_args=self.extra_args, timewait=90) | ||||
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 | ||||
▲ Show 20 Lines • Show All 232 Lines • Show Last 20 Lines |