Changeset View
Changeset View
Standalone View
Standalone View
test/functional/abc-magnetic-anomaly-mining.py
Show All 23 Lines | def set_test_params(self): | ||||
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', | ||||
"-magneticanomalyactivationtime=%d" % self.mocktime, | "-magneticanomalyactivationtime=%d" % self.mocktime, | ||||
"-replayprotectionactivationtime=%d" % (10 * self.mocktime)] | "-replayprotectionactivationtime=%d" % ( | ||||
10 * self.mocktime), | |||||
"-deprecatedrpc=signrawtransaction"] | |||||
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 |