From 10a1648e62dbba4884b76abbc637671064560004 Mon Sep 17 00:00:00 2001 From: tdb3 <106488469+tdb3@users.noreply.github.com> Date: Wed, 1 Jan 2025 19:47:54 -0500 Subject: [PATCH] test: use DIFF_1_N_BITS in tool_signet_miner --- test/functional/tool_signet_miner.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)