Skip to content

Commit

Permalink
test: use DIFF_1_N_BITS in tool_signet_miner
Browse files Browse the repository at this point in the history
  • Loading branch information
tdb3 authored and Sjors committed Jan 3, 2025
1 parent 6b504d6 commit 10a1648
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/functional/tool_signet_miner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 10a1648

Please sign in to comment.