[doc] Update comments on dummy extraNonces in tests

This commit is contained in:
Anthony Towns
2025-11-01 04:46:17 +10:00
committed by Sjors Provoost
parent 27aeeff630
commit 78df9003d6
3 changed files with 3 additions and 2 deletions

View File

@@ -164,7 +164,7 @@ def add_witness_commitment(block, nonce=0):
def script_BIP34_coinbase_height(height):
if height <= 16:
res = CScriptOp.encode_op_n(height)
# Append dummy to increase scriptSig size to 2 (see bad-cb-length consensus rule)
# Append dummy extraNonce to increase scriptSig size to 2 (see bad-cb-length consensus rule)
return CScript([res, OP_0])
return CScript([CScriptNum(height)])