File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 12
12
create_tx_with_script ,
13
13
get_legacy_sigopcount_block ,
14
14
MAX_BLOCK_SIGOPS ,
15
+ REGTEST_N_BITS ,
15
16
)
16
17
from test_framework .messages import (
17
18
CBlock ,
@@ -590,7 +591,7 @@ def run_test(self):
590
591
b44 = CBlock ()
591
592
b44 .nTime = self .tip .nTime + 1
592
593
b44 .hashPrevBlock = self .tip .sha256
593
- b44 .nBits = 0x207fffff
594
+ b44 .nBits = REGTEST_N_BITS
594
595
b44 .vtx .append (coinbase )
595
596
tx = self .create_and_sign_transaction (out [14 ], 1 )
596
597
b44 .vtx .append (tx )
@@ -606,7 +607,7 @@ def run_test(self):
606
607
b45 = CBlock ()
607
608
b45 .nTime = self .tip .nTime + 1
608
609
b45 .hashPrevBlock = self .tip .sha256
609
- b45 .nBits = 0x207fffff
610
+ b45 .nBits = REGTEST_N_BITS
610
611
b45 .vtx .append (non_coinbase )
611
612
b45 .hashMerkleRoot = b45 .calc_merkle_root ()
612
613
b45 .solve ()
@@ -620,7 +621,7 @@ def run_test(self):
620
621
b46 = CBlock ()
621
622
b46 .nTime = b44 .nTime + 1
622
623
b46 .hashPrevBlock = b44 .sha256
623
- b46 .nBits = 0x207fffff
624
+ b46 .nBits = REGTEST_N_BITS
624
625
b46 .vtx = []
625
626
b46 .hashMerkleRoot = 0
626
627
b46 .solve ()
You can’t perform that action at this time.
0 commit comments