Skip to content

Commit a118fe1

Browse files
committed
test: reduce num_nodes in feature_nulldummy.py to 1
With bitcoin#19937 (backported as ae7e4cb), GBT doesn't require peers if using test chains, we can drop the extra node.
1 parent c6eabc1 commit a118fe1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/functional/feature_nulldummy.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,14 @@ def invalidate_nulldummy_tx(tx):
4343
class NULLDUMMYTest(BitcoinTestFramework):
4444

4545
def set_test_params(self):
46-
# Need two nodes so GBT (getblocktemplate) doesn't complain that it's not connected.
47-
self.num_nodes = 2
46+
self.num_nodes = 1
4847
self.setup_clean_chain = True
4948
self.extra_args = [[
5049
'-whitelist=127.0.0.1',
5150
'-dip3params=105:105',
5251
f'-testactivationheight=bip147@{COINBASE_MATURITY + 5}',
5352
'-par=1', # Use only one script thread to get the exact reject reason for testing
54-
]] * 2
53+
]]
5554

5655
def skip_test_if_missing_module(self):
5756
self.skip_if_no_wallet()

0 commit comments

Comments
 (0)