Changeset View
Changeset View
Standalone View
Standalone View
test/functional/abc-phonon-mempoolpolicy.py
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | |||||
class PhononPolicyChangeTest(BitcoinTestFramework): | class PhononPolicyChangeTest(BitcoinTestFramework): | ||||
def set_test_params(self): | def set_test_params(self): | ||||
self.num_nodes = 1 | self.num_nodes = 1 | ||||
self.block_heights = {} | self.block_heights = {} | ||||
self.extra_args = [[ | self.extra_args = [[ | ||||
"-phononactivationtime={}".format(PHONON_START_TIME), | "-phononactivationtime={}".format(PHONON_START_TIME), | ||||
"-replayprotectionactivationtime={}".format( | "-replayprotectionactivationtime={}".format( | ||||
REPLAY_PROTECTION_TIME)]] | REPLAY_PROTECTION_TIME), | ||||
"-acceptnonstdtxn=1"]] | |||||
def bootstrap_p2p(self): | def bootstrap_p2p(self): | ||||
self.nodes[0].add_p2p_connection(P2PDataStore()) | self.nodes[0].add_p2p_connection(P2PDataStore()) | ||||
self.nodes[0].p2p.wait_for_verack() | self.nodes[0].p2p.wait_for_verack() | ||||
def get_best_block(self, node): | def get_best_block(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() | ||||
▲ Show 20 Lines • Show All 218 Lines • Show Last 20 Lines |