Skip to content

Commit c75872f

Browse files
tdb3Sjors
authored andcommitted
test: use DIFF_1_N_BITS in tool_signet_miner
1 parent 4131f32 commit c75872f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/functional/tool_signet_miner.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import sys
1010
import time
1111

12+
from test_framework.blocktools import DIFF_1_N_BITS
1213
from test_framework.key import ECKey
1314
from test_framework.script_util import key_to_p2wpkh_script
1415
from test_framework.test_framework import BitcoinTestFramework
@@ -55,7 +56,7 @@ def run_test(self):
5556
'generate',
5657
f'--address={node.getnewaddress()}',
5758
f'--grind-cmd={self.options.bitcoinutil} grind',
58-
'--nbits=1d00ffff',
59+
f'--nbits={DIFF_1_N_BITS:08x}',
5960
f'--set-block-time={int(time.time())}',
6061
'--poolnum=99',
6162
], check=True, stderr=subprocess.STDOUT)

0 commit comments

Comments
 (0)