mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
Merge 6535772510 into merged_master (Bitcoin PR bitcoin/bitcoin#23882)
This commit is contained in:
commit
7aff9c20e3
1 changed files with 2 additions and 3 deletions
|
|
@ -2192,9 +2192,8 @@ bool CChainState::ConnectBlock(const CBlock& block, BlockValidationState& state,
|
|||
// 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 and presumably will
|
||||
// be reset before it reaches block 1,983,702 and starts doing unnecessary
|
||||
// BIP30 checking again.
|
||||
// post BIP34 before approximately height 486,000,000. After block
|
||||
// 1,983,702 testnet3 starts doing unnecessary BIP30 checking again.
|
||||
assert(pindex->pprev);
|
||||
CBlockIndex* pindexBIP34height = pindex->pprev->GetAncestor(m_params.GetConsensus().BIP34Height);
|
||||
//Only continue to enforce if we're below BIP34 activation height or the block hash at that height doesn't correspond.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue