mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-06 11:13:02 +02:00
[doc] Update comments on dummy extraNonces in tests
This commit is contained in:
committed by
Sjors Provoost
parent
27aeeff630
commit
78df9003d6
@@ -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)])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user