Changeset View
Changeset View
Standalone View
Standalone View
test/functional/abc-magnetic-anomaly-mining.py
Show All 19 Lines | def set_test_params(self): | ||||
# it errors out if it is not connected to other nodes | # it errors out if it is not connected to other nodes | ||||
self.num_nodes = 2 | self.num_nodes = 2 | ||||
self.setup_clean_chain = True | self.setup_clean_chain = True | ||||
self.block_heights = {} | self.block_heights = {} | ||||
self.tip = None | self.tip = None | ||||
self.blocks = {} | self.blocks = {} | ||||
self.mocktime = int(time.time()) - 600 * 100 | self.mocktime = int(time.time()) - 600 * 100 | ||||
extra_arg = ['-spendzeroconfchange=0', '-whitelist=127.0.0.1', | extra_arg = ['-spendzeroconfchange=0', '-whitelist=127.0.0.1'] | ||||
"-replayprotectionactivationtime={}".format(10 * self.mocktime)] | |||||
self.extra_args = [extra_arg, extra_arg] | self.extra_args = [extra_arg, extra_arg] | ||||
def run_test(self): | def run_test(self): | ||||
mining_node = self.nodes[0] | mining_node = self.nodes[0] | ||||
# Helper for updating the times | # Helper for updating the times | ||||
def update_time(): | def update_time(): | ||||
mining_node.setmocktime(self.mocktime) | mining_node.setmocktime(self.mocktime) | ||||
▲ Show 20 Lines • Show All 82 Lines • Show Last 20 Lines |