Skip to content

Commit 4a585b2

Browse files
laanwjcodablock
authored andcommitted
Merge bitcoin#8835: [qa] nulldummy.py: Don't run unused code
fa156c6 [qa] nulldummy: Don't run unused code (MarcoFalke)
1 parent 075b4d3 commit 4a585b2

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

qa/rpc-tests/nulldummy.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@
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
77
from test_framework.util import *
88
from test_framework.mininode import CTransaction, NetworkThread
99
from test_framework.blocktools import create_coinbase, create_block, add_witness_commitment
10-
from test_framework.comptool import TestManager
1110
from test_framework.script import CScript
1211
from io import BytesIO
1312
import 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

147145
if __name__ == '__main__':
148-
NULLDUMMYTest().main()
146+
NULLDUMMYTest().main()

0 commit comments

Comments
 (0)