Changeset View
Changeset View
Standalone View
Standalone View
test/functional/feature_dersig.py
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | |||||
class BIP66Test(BitcoinTestFramework): | class BIP66Test(BitcoinTestFramework): | ||||
def set_test_params(self): | def set_test_params(self): | ||||
self.num_nodes = 1 | self.num_nodes = 1 | ||||
self.extra_args = [['-whitelist=127.0.0.1', '-enablebip61']] | self.extra_args = [['-whitelist=127.0.0.1', '-enablebip61']] | ||||
self.setup_clean_chain = True | self.setup_clean_chain = True | ||||
self.rpc_timeout = 120 | self.rpc_timeout = 120 | ||||
def skip_test_if_missing_module(self): | |||||
self.skip_if_no_wallet() | |||||
def run_test(self): | def run_test(self): | ||||
self.nodes[0].add_p2p_connection(P2PInterface()) | self.nodes[0].add_p2p_connection(P2PInterface()) | ||||
self.log.info("Mining {} blocks".format(DERSIG_HEIGHT - 1)) | self.log.info("Mining {} blocks".format(DERSIG_HEIGHT - 1)) | ||||
self.coinbase_txids = [self.nodes[0].getblock( | self.coinbase_txids = [self.nodes[0].getblock( | ||||
b)['tx'][0] for b in self.nodes[0].generate(DERSIG_HEIGHT - 1)] | b)['tx'][0] for b in self.nodes[0].generate(DERSIG_HEIGHT - 1)] | ||||
self.nodeaddress = self.nodes[0].getnewaddress() | self.nodeaddress = self.nodes[0].getnewaddress() | ||||
▲ Show 20 Lines • Show All 66 Lines • Show Last 20 Lines |