mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-30 04:32:21 +02:00
validation: drop testnet3 comment about BIP34
This commit is contained in:
parent
5462b35f90
commit
aae6208eb1
@ -2589,10 +2589,6 @@ bool Chainstate::ConnectBlock(const CBlock& block, BlockValidationState& state,
|
|||||||
// coinbase. The two historical BIP30 violations often provide a confusing
|
// coinbase. The two historical BIP30 violations often provide a confusing
|
||||||
// edge case when manipulating the UTXO and it would be simpler not to have
|
// edge case when manipulating the UTXO and it would be simpler not to have
|
||||||
// another edge case to deal with.
|
// another edge case to deal with.
|
||||||
|
|
||||||
// testnet3 has no blocks before the BIP34 height with indicated heights
|
|
||||||
// post BIP34 before approximately height 486,000,000. After block
|
|
||||||
// 1,983,702 testnet3 starts doing unnecessary BIP30 checking again.
|
|
||||||
assert(pindex->pprev);
|
assert(pindex->pprev);
|
||||||
CBlockIndex* pindexBIP34height = pindex->pprev->GetAncestor(params.GetConsensus().BIP34Height);
|
CBlockIndex* pindexBIP34height = pindex->pprev->GetAncestor(params.GetConsensus().BIP34Height);
|
||||||
//Only continue to enforce if we're below BIP34 activation height or the block hash at that height doesn't correspond.
|
//Only continue to enforce if we're below BIP34 activation height or the block hash at that height doesn't correspond.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user