Changeset View
Changeset View
Standalone View
Standalone View
test/functional/nulldummy.py
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | class NULLDUMMYTest(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.extra_args = [['-whitelist=127.0.0.1']] | self.extra_args = [['-whitelist=127.0.0.1']] | ||||
def run_test(self): | def run_test(self): | ||||
self.address = self.nodes[0].getnewaddress() | self.address = self.nodes[0].getnewaddress() | ||||
self.ms_address = self.nodes[0].addmultisigaddress(1, [self.address]) | self.ms_address = self.nodes[0].addmultisigaddress(1, [self.address])[ | ||||
'address'] | |||||
NetworkThread().start() # Start up network handling in another thread | NetworkThread().start() # Start up network handling in another thread | ||||
self.coinbase_blocks = self.nodes[0].generate(2) # Block 2 | self.coinbase_blocks = self.nodes[0].generate(2) # Block 2 | ||||
coinbase_txid = [] | coinbase_txid = [] | ||||
for i in self.coinbase_blocks: | for i in self.coinbase_blocks: | ||||
coinbase_txid.append(self.nodes[0].getblock(i)['tx'][0]) | coinbase_txid.append(self.nodes[0].getblock(i)['tx'][0]) | ||||
self.nodes[0].generate(427) # Block 429 | self.nodes[0].generate(427) # Block 429 | ||||
self.lastblockhash = self.nodes[0].getbestblockhash() | self.lastblockhash = self.nodes[0].getbestblockhash() | ||||
▲ Show 20 Lines • Show All 63 Lines • Show Last 20 Lines |