mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-24 18:23:26 -03:00
test: use DIFF_1_N_BITS in tool_signet_miner
This commit is contained in:
parent
d3564be226
commit
7dc2f06990
1 changed files with 2 additions and 1 deletions
|
@ -9,6 +9,7 @@ import subprocess
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
from test_framework.blocktools import DIFF_1_N_BITS
|
||||||
from test_framework.key import ECKey
|
from test_framework.key import ECKey
|
||||||
from test_framework.script_util import key_to_p2wpkh_script
|
from test_framework.script_util import key_to_p2wpkh_script
|
||||||
from test_framework.test_framework import BitcoinTestFramework
|
from test_framework.test_framework import BitcoinTestFramework
|
||||||
|
@ -55,7 +56,7 @@ class SignetMinerTest(BitcoinTestFramework):
|
||||||
'generate',
|
'generate',
|
||||||
f'--address={node.getnewaddress()}',
|
f'--address={node.getnewaddress()}',
|
||||||
f'--grind-cmd={self.options.bitcoinutil} grind',
|
f'--grind-cmd={self.options.bitcoinutil} grind',
|
||||||
'--nbits=1d00ffff',
|
f'--nbits={hex(DIFF_1_N_BITS)}',
|
||||||
f'--set-block-time={int(time.time())}',
|
f'--set-block-time={int(time.time())}',
|
||||||
'--poolnum=99',
|
'--poolnum=99',
|
||||||
], check=True, stderr=subprocess.STDOUT)
|
], check=True, stderr=subprocess.STDOUT)
|
||||||
|
|
Loading…
Add table
Reference in a new issue