Changeset View
Changeset View
Standalone View
Standalone View
test/functional/abc-sigchecks-inputstandardness-activation.py
Show First 20 Lines • Show All 77 Lines • ▼ Show 20 Lines | class InputSigChecksActivationTest(BitcoinTestFramework): | ||||
def set_test_params(self): | def set_test_params(self): | ||||
self.setup_clean_chain = True | self.setup_clean_chain = True | ||||
self.num_nodes = 1 | self.num_nodes = 1 | ||||
self.block_heights = {} | self.block_heights = {} | ||||
self.extra_args = [["-phononactivationtime={}".format( | self.extra_args = [["-phononactivationtime={}".format( | ||||
SIGCHECKS_ACTIVATION_TIME), | SIGCHECKS_ACTIVATION_TIME), | ||||
"-replayprotectionactivationtime={}".format( | "-replayprotectionactivationtime={}".format( | ||||
REPLAY_PROTECTION_START_TIME), ]] | REPLAY_PROTECTION_START_TIME), | ||||
"-acceptnonstdtxn=1"]] | |||||
def getbestblock(self, node): | def getbestblock(self, node): | ||||
"""Get the best block. Register its height so we can use build_block.""" | """Get the best block. Register its height so we can use build_block.""" | ||||
block_height = node.getblockcount() | block_height = node.getblockcount() | ||||
blockhash = node.getblockhash(block_height) | blockhash = node.getblockhash(block_height) | ||||
block = FromHex(CBlock(), node.getblock(blockhash, 0)) | block = FromHex(CBlock(), node.getblock(blockhash, 0)) | ||||
block.calc_sha256() | block.calc_sha256() | ||||
self.block_heights[block.sha256] = block_height | self.block_heights[block.sha256] = block_height | ||||
▲ Show 20 Lines • Show All 217 Lines • Show Last 20 Lines |