aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJesse Cohen <jc@jc.lol>2018-04-20 13:55:22 -0400
committerJesse Cohen <jc@jc.lol>2018-04-20 13:55:22 -0400
commitb184127db2f10c70637ce61ba678efcab0f08a88 (patch)
tree6087d7a6115b8d4e2cbe601a1999c694edd2b2e1 /test
parent8b262eb2d80bfa27ae8501078ce47bc1407e9c55 (diff)
downloadbitcoin-b184127db2f10c70637ce61ba678efcab0f08a88.tar.xz
[doc][trivial] no retargeting in regtest mode
Diffstat (limited to 'test')
-rw-r--r--test/functional/test_framework/blocktools.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/test_framework/blocktools.py b/test/functional/test_framework/blocktools.py
index 43982cd09a..e6bb8d495b 100644
--- a/test/functional/test_framework/blocktools.py
+++ b/test/functional/test_framework/blocktools.py
@@ -32,7 +32,7 @@ def create_block(hashprev, coinbase, nTime=None):
else:
block.nTime = nTime
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.hashMerkleRoot = block.calc_merkle_root()
block.calc_sha256()
@@ -86,7 +86,7 @@ def serialize_script_num(value):
# otherwise an anyone-can-spend output.
def create_coinbase(height, pubkey = None):
coinbase = CTransaction()
- coinbase.vin.append(CTxIn(COutPoint(0, 0xffffffff),
+ coinbase.vin.append(CTxIn(COutPoint(0, 0xffffffff),
ser_string(serialize_script_num(height)), 0xffffffff))
coinbaseoutput = CTxOut()
coinbaseoutput.nValue = 50 * COIN