Skip to content

Commit

Permalink
[doc][trivial] no retargeting in regtest mode
Browse files Browse the repository at this point in the history
  • Loading branch information
skeees authored and str4d committed Nov 17, 2020
1 parent 03f1d38 commit aead914
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qa/rpc-tests/test_framework/blocktools.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def create_block(hashprev, coinbase, nTime=None, nBits=None, hashFinalSaplingRoo
if hashFinalSaplingRoot is not None:
block.hashFinalSaplingRoot = hashFinalSaplingRoot
if nBits is None:
block.nBits = 0x200f0f0f # Will break after a difficulty adjustment...
block.nBits = 0x200f0f0f # difficulty retargeting is disabled in REGTEST chainparams
else:
block.nBits = nBits
block.vtx.append(coinbase)
Expand Down Expand Up @@ -47,7 +47,7 @@ def serialize_script_num(value):
def create_coinbase(heightAdjust = 0):
global counter
coinbase = CTransaction()
coinbase.vin.append(CTxIn(COutPoint(0, 0xffffffff),
coinbase.vin.append(CTxIn(COutPoint(0, 0xffffffff),
CScript([counter+heightAdjust, OP_0]), 0xffffffff))
counter += 1
coinbaseoutput = CTxOut()
Expand Down

0 comments on commit aead914

Please sign in to comment.