Changeset View
Changeset View
Standalone View
Standalone View
test/functional/feature_nulldummy.py
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | def set_test_params(self): | ||||
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]) | ||||
network_thread_start() | network_thread_start() | ||||
self.coinbase_blocks = self.nodes[0].generate(2) # Block 2 | # Block 2 | ||||
self.coinbase_blocks = self.nodes[0].generate(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 | # Block 429 | ||||
self.nodes[0].generate(427) | |||||
self.lastblockhash = self.nodes[0].getbestblockhash() | self.lastblockhash = self.nodes[0].getbestblockhash() | ||||
self.tip = int("0x" + self.lastblockhash, 0) | self.tip = int("0x" + self.lastblockhash, 0) | ||||
self.lastblockheight = 429 | self.lastblockheight = 429 | ||||
self.lastblocktime = int(time.time()) + 429 | self.lastblocktime = int(time.time()) + 429 | ||||
self.log.info( | self.log.info( | ||||
"Test 1: NULLDUMMY compliant base transactions should be accepted to mempool and mined before activation [430]") | "Test 1: NULLDUMMY compliant base transactions should be accepted to mempool and mined before activation [430]") | ||||
test1txs = [self.create_transaction( | test1txs = [self.create_transaction( | ||||
▲ Show 20 Lines • Show All 56 Lines • Show Last 20 Lines |