diff --git a/test/functional/tool_signet_miner.py b/test/functional/tool_signet_miner.py index 67fb5c9f94f34..868696b2e17b4 100755 --- a/test/functional/tool_signet_miner.py +++ b/test/functional/tool_signet_miner.py @@ -9,6 +9,7 @@ import sys import time +from test_framework.blocktools import DIFF_1_N_BITS from test_framework.key import ECKey from test_framework.script_util import key_to_p2wpkh_script from test_framework.test_framework import BitcoinTestFramework @@ -55,7 +56,7 @@ def run_test(self): 'generate', f'--address={node.getnewaddress()}', f'--grind-cmd={self.options.bitcoinutil} grind', - '--nbits=1d00ffff', + f'--nbits={hex(DIFF_1_N_BITS)}', f'--set-block-time={int(time.time())}', '--poolnum=99', ], check=True, stderr=subprocess.STDOUT)