33# Distributed under the MIT software license, see the accompanying
44# file COPYING or http://www.opensource.org/licenses/mit-license.php.
55
6- from test_framework .test_framework import ComparisonTestFramework
6+ from test_framework .test_framework import BitcoinTestFramework
77from test_framework .util import *
88from test_framework .mininode import CTransaction , NetworkThread
99from test_framework .blocktools import create_coinbase , create_block , add_witness_commitment
10- from test_framework .comptool import TestManager
1110from test_framework .script import CScript
1211from io import BytesIO
1312import time
@@ -37,11 +36,12 @@ def trueDummy(tx):
3736[Policy/Consensus] Check that the new NULLDUMMY rules are enforced on the 432nd block.
3837'''
3938
40- class NULLDUMMYTest (ComparisonTestFramework ):
39+ class NULLDUMMYTest (BitcoinTestFramework ):
4140
4241 def __init__ (self ):
4342 super ().__init__ ()
4443 self .num_nodes = 1
44+ self .setup_clean_chain = True
4545
4646 def setup_network (self ):
4747 # Must set the blockversion for this test
@@ -54,8 +54,6 @@ def run_test(self):
5454 self .wit_address = self .nodes [0 ].addwitnessaddress (self .address )
5555 self .wit_ms_address = self .nodes [0 ].addwitnessaddress (self .ms_address )
5656
57- test = TestManager (self , self .options .tmpdir )
58- test .add_all_connections (self .nodes )
5957 NetworkThread ().start () # Start up network handling in another thread
6058 self .coinbase_blocks = self .nodes [0 ].generate (2 ) # Block 2
6159 coinbase_txid = []
@@ -145,4 +143,4 @@ def block_submit(self, node, txs, witness = False, accept = False):
145143 assert_equal (node .getbestblockhash (), self .lastblockhash )
146144
147145if __name__ == '__main__' :
148- NULLDUMMYTest ().main ()
146+ NULLDUMMYTest ().main ()
0 commit comments