Changeset View
Changeset View
Standalone View
Standalone View
test/functional/abc-replay-protection.py
Show All 35 Lines | |||||
class ReplayProtectionTest(ComparisonTestFramework): | class ReplayProtectionTest(ComparisonTestFramework): | ||||
def set_test_params(self): | def set_test_params(self): | ||||
self.num_nodes = 1 | self.num_nodes = 1 | ||||
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.extra_args = [['-whitelist=127.0.0.1', | self.extra_args = [ | ||||
"-replayprotectionactivationtime=%d" % REPLAY_PROTECTION_START_TIME]] | ["-replayprotectionactivationtime=%d" % REPLAY_PROTECTION_START_TIME]] | ||||
def run_test(self): | def run_test(self): | ||||
self.test = TestManager(self, self.options.tmpdir) | self.test = TestManager(self, self.options.tmpdir) | ||||
self.test.add_all_connections(self.nodes) | self.test.add_all_connections(self.nodes) | ||||
network_thread_start() | network_thread_start() | ||||
self.nodes[0].setmocktime(REPLAY_PROTECTION_START_TIME) | self.nodes[0].setmocktime(REPLAY_PROTECTION_START_TIME) | ||||
self.test.run() | self.test.run() | ||||
▲ Show 20 Lines • Show All 228 Lines • Show Last 20 Lines |