Changeset View
Changeset View
Standalone View
Standalone View
test/functional/abc-op-reversebytes-activation.py
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | PRE_UPGRADE_BAD_OPCODE_ERROR = \ | ||||
'upgrade-conditional-script-failure (Opcode missing or not understood)' | 'upgrade-conditional-script-failure (Opcode missing or not understood)' | ||||
class OpReversebytesActivationTest(BitcoinTestFramework): | class OpReversebytesActivationTest(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), | ||||
"-acceptnonstdtxn=1"]] | |||||
def bootstrap_p2p(self, *, num_connections=1): | def bootstrap_p2p(self, *, num_connections=1): | ||||
"""Add a P2P connection to the node. | """Add a P2P connection to the node. | ||||
Helper to connect and wait for version handshake.""" | Helper to connect and wait for version handshake.""" | ||||
for _ in range(num_connections): | for _ in range(num_connections): | ||||
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() | ||||
▲ Show 20 Lines • Show All 226 Lines • Show Last 20 Lines |