test: use DIFF_1_N_BITS in tool_signet_miner

This commit is contained in:
tdb3 2025-01-01 19:47:54 -05:00 committed by Sjors Provoost
parent d3564be226
commit 7dc2f06990
No known key found for this signature in database
GPG key ID: 57FF9BDBCC301009

View file

@ -9,6 +9,7 @@ import subprocess
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 @@ class SignetMinerTest(BitcoinTestFramework):
'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)