[doc][trivial] no retargeting in regtest mode

This commit is contained in:
Jesse Cohen 2018-04-20 13:55:22 -04:00
parent 8b262eb2d8
commit b184127db2
1 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ def create_block(hashprev, coinbase, nTime=None):
else: else:
block.nTime = nTime block.nTime = nTime
block.hashPrevBlock = hashprev block.hashPrevBlock = hashprev
block.nBits = 0x207fffff # Will break after a difficulty adjustment... block.nBits = 0x207fffff # difficulty retargeting is disabled in REGTEST chainparams
block.vtx.append(coinbase) block.vtx.append(coinbase)
block.hashMerkleRoot = block.calc_merkle_root() block.hashMerkleRoot = block.calc_merkle_root()
block.calc_sha256() block.calc_sha256()