Changeset View
Changeset View
Standalone View
Standalone View
test/functional/abc-replay-protection.py
Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | |||||
class ReplayProtectionTest(BitcoinTestFramework): | class ReplayProtectionTest(BitcoinTestFramework): | ||||
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 = [['-whitelist=noban@127.0.0.1', | ||||
"-replayprotectionactivationtime={}".format( | "-replayprotectionactivationtime={}".format( | ||||
REPLAY_PROTECTION_START_TIME), | REPLAY_PROTECTION_START_TIME), | ||||
"-acceptnonstdtxn=1"]] | "-acceptnonstdtxn=1"]] | ||||
def next_block(self, number): | def next_block(self, number): | ||||
if self.tip is None: | if self.tip is None: | ||||
base_block_hash = self.genesis_hash | base_block_hash = self.genesis_hash | ||||
block_time = int(time.time()) + 1 | block_time = int(time.time()) + 1 | ||||
▲ Show 20 Lines • Show All 249 Lines • Show Last 20 Lines |