Changeset View
Changeset View
Standalone View
Standalone View
src/validation.cpp
Show First 20 Lines • Show All 1,775 Lines • ▼ Show 20 Lines | bool fEnforceBIP30 = !((pindex->nHeight == 91842 && | ||||
uint256S("0x00000000000743f190a18c5577a3c2d2a1f" | uint256S("0x00000000000743f190a18c5577a3c2d2a1f" | ||||
"610ae9601ac046a38084ccb7cd721"))); | "610ae9601ac046a38084ccb7cd721"))); | ||||
// Once BIP34 activated it was not possible to create new duplicate | // Once BIP34 activated it was not possible to create new duplicate | ||||
// coinbases and thus other than starting with the 2 existing duplicate | // coinbases and thus other than starting with the 2 existing duplicate | ||||
// coinbase pairs, not possible to create overwriting txs. But by the time | // coinbase pairs, not possible to create overwriting txs. But by the time | ||||
// BIP34 activated, in each of the existing pairs the duplicate coinbase had | // BIP34 activated, in each of the existing pairs the duplicate coinbase had | ||||
// overwritten the first before the first had been spent. Since those | // overwritten the first before the first had been spent. Since those | ||||
// coinbases are sufficiently buried its no longer possible to create | // coinbases are sufficiently buried it's no longer possible to create | ||||
// further duplicate transactions descending from the known pairs either. If | // further duplicate transactions descending from the known pairs either. If | ||||
// we're on the known chain at height greater than where BIP34 activated, we | // we're on the known chain at height greater than where BIP34 activated, we | ||||
// can save the db accesses needed for the BIP30 check. | // can save the db accesses needed for the BIP30 check. | ||||
assert(pindex->pprev); | assert(pindex->pprev); | ||||
CBlockIndex *pindexBIP34height = | CBlockIndex *pindexBIP34height = | ||||
pindex->pprev->GetAncestor(consensusParams.BIP34Height); | pindex->pprev->GetAncestor(consensusParams.BIP34Height); | ||||
// Only continue to enforce if we're below BIP34 activation height or the | // Only continue to enforce if we're below BIP34 activation height or the | ||||
// block hash at that height doesn't correspond. | // block hash at that height doesn't correspond. | ||||
▲ Show 20 Lines • Show All 3,924 Lines • Show Last 20 Lines |