Skip to content

Commit ccd976d

Browse files
committed
test: use 327 fewer blocks in feature_nulldummy
by generating 100 blocks for coinbase maturity instead of 427. This speeds up the test and should help avoid timeout errors.
1 parent 68c280f commit ccd976d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/functional/feature_nulldummy.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@
2020
from test_framework.test_framework import BitcoinTestFramework
2121
from test_framework.util import assert_equal, assert_raises_rpc_error
2222

23-
COINBASE_MATURITY = 427
23+
COINBASE_MATURITY = 100
2424
NULLDUMMY_ERROR = "non-mandatory-script-verify-flag (Dummy CHECKMULTISIG argument must be zero)"
2525

2626
def trueDummy(tx):
2727
scriptSig = CScript(tx.vin[0].scriptSig)
2828
newscript = []
2929
for i in scriptSig:
30-
if (len(newscript) == 0):
30+
if len(newscript) == 0:
3131
assert len(i) == 0
3232
newscript.append(b'\x51')
3333
else:
@@ -38,7 +38,7 @@ def trueDummy(tx):
3838
class NULLDUMMYTest(BitcoinTestFramework):
3939

4040
def set_test_params(self):
41-
# Need two nodes only so GBT doesn't complain that it's not connected
41+
# Need two nodes so GBT (getblocktemplate) doesn't complain that it's not connected.
4242
self.num_nodes = 2
4343
self.setup_clean_chain = True
4444
# This script tests NULLDUMMY activation, which is part of the 'segwit' deployment, so we go through

0 commit comments

Comments
 (0)