Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
@@ -3093,11 +3093,10 @@ bool ContextualCheckBlock(const CBlock& block, CValidationState& state, CBlockIn
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Enforce block.nVersion=2 rule that the coinbase starts with serialized block height
|
// Enforce BIP 34 rule that the coinbase starts with serialized block height.
|
||||||
// if 750 of the last 1,000 blocks are version 2 or greater (51/100 if testnet):
|
// In Zcash this has been enforced since launch, except that the genesis
|
||||||
// Since MIN_BLOCK_VERSION = 4 all blocks with nHeight > 0 should satisfy this.
|
// block didn't include the height in the coinbase (see Zcash protocol spec
|
||||||
// This rule is not applied to the genesis block, which didn't include the height
|
// section '6.8 Bitcoin Improvement Proposals').
|
||||||
// in the coinbase.
|
|
||||||
if (nHeight > 0)
|
if (nHeight > 0)
|
||||||
{
|
{
|
||||||
CScript expect = CScript() << nHeight;
|
CScript expect = CScript() << nHeight;
|
||||||
|
|||||||
Reference in New Issue
Block a user