BOMBARCHIVE
Explore

A living reference collection. Written in the wiki, preserved in Git.

The archiveBitcoin

Bitcoin block height

Bitcoin block height is a block's position in a chain of Bitcoin blocks, counted from the genesis block at height 0. It is one of Bitcoin's most ordinary coordinates and, for Bitmap, the coordinate that becomes a District name.

A position before it was a payload

Bitcoin had block heights from genesis because blocks form an ordered ancestry: genesis is height 0, its child is height 1, and so on.

The current Bitcoin Core CBlockHeader serialization still makes the distinction visible. It contains nVersion, hashPrevBlock, hashMerkleRoot, nTime, nBits and nNonce. There is no height member in the serialized header. Bitcoin Core block-header source — current implementation

A node can therefore know the height of an old block without finding a height number inside that block's header. The number follows from the ancestry being indexed.

This is particularly visible at the beginning of the chain. BIP 34 defines the genesis block as height zero, but BIP 34 did not exist in 2009 and its coinbase-height rule was not applied backwards. “Block 0” is first a chain position, not a self-label embedded by the genesis block.

2012: putting the height inside new blocks

On 27 June 2012, Gavin Andresen opened Bitcoin Core PR #1526, Transition to requiring block height in block coinbases. The proposal made version-2 blocks begin their coinbase scriptSig with the block height. Andresen gave two motivations: making subsequent blocks and transaction hashes unique, and making it easier to reason about plausible difficulty for blocks whose parents had not yet been connected. Direct implementation record

BIP 34, assigned on 6 July 2012, formalized that design as Block v2, Height in Coinbase. It defines height as the height of the mined block in the blockchain, with genesis at zero, and specifies a minimally encoded serialized CScript number as the first item in the coinbase scriptSig. BIP 34 — standards record

PR #1526 merged on 20 August 2012. The implementation also changed newly mined blocks from version 1 to version 2 and introduced the rolling supermajority checks used to deploy the new rule without a single preselected activation height. Direct implementation record

Activation had more than one boundary

The original BIP used two thresholds over the previous 1,000 blocks:

  • at 75% version 2 or greater, invalid version-2 blocks were rejected;
  • at 95%, version-1 blocks were rejected entirely.

Bitcoin Core's maintained BIP implementation table records the first rule as taking effect for version-2 blocks at height 224,413 on 5 March 2013. It records version-1 blocks as no longer allowed from height 227,931 on 25 March 2013. Bitcoin Core BIP implementation table

The BIP itself preserves a different, compatible milestone: block 227,835, with a header timestamp of 24 March 2013, was the last version-1 block actually mined. BIP 34 result

Those numbers should not be collapsed into one “BIP 34 activation block.” They describe different events: enforcement against malformed version-2 blocks, the last observed version-1 block, and the later point after which version-1 blocks were no longer valid.

Modern Bitcoin Core no longer needs to rediscover the 2013 vote from scratch. Its mainnet consensus parameters record BIP 34 as a buried deployment at height 227,931 and pin the block hash at that height. That is current implementation evidence about how the historical activation is represented now, not a contemporary 2013 announcement. Current Bitcoin Core consensus parameters

Why the coinbase mattered

The coinbase transaction is created by the miner and has no ordinary previous output. Before BIP 34, independently produced coinbases could repeat enough data to create duplicate transaction identifiers under particular conditions.

BIP 30 had already addressed the immediate consensus problem in March 2012 by forbidding a new transaction from replacing an earlier transaction with the same identifier while the earlier transaction still had unspent outputs. BIP 34 took a different structural step for future blocks: requiring the height in the coinbase gave each height a naturally different input script prefix. BIP 30 — standards record · BIP 34 — standards record

The height still did not become a block-header field. It became transaction data inside the block. Because the coinbase transaction contributes to the Merkle root, that transaction-level height commitment is ultimately covered by the block header.

Bitmap's coordinate is older than BIP 34

Bitmap names a District using the Bitcoin block's height: 0.bitmap, 1.bitmap, 792435.bitmap, and so on.

That namespace does not depend on a block carrying its own BIP 34 height item. Genesis and every other pre-BIP-34 block already have heights by their positions in Bitcoin's chain, so they can be Bitmap Districts even though they predate the coinbase-height rule.

This keeps three layers separate:

  • Bitcoin chain position answers which height a block occupies.
  • BIP 34 makes that height an explicit consensus-checked item in the coinbase for later blocks.
  • Bitmap uses the height as an application-layer District name.

For Bitmap, the distinction is small but foundational. 0.bitmap refers to the genesis block because Bitcoin's genesis is height 0, not because the 2009 block contains the string or number 0.bitmap, or even because it contains a BIP 34 height commitment.

Height and time are different coordinates

Height gives exact chain order but not exact elapsed time. Bitcoin targets an average block interval, not a schedule of civil timestamps, and block-header times have their own consensus rules and historical quirks. See Bitcoin time.

That is why an archive can safely say that block 792,435 comes after block 792,434, while treating the header timestamp attached to either block as a different kind of evidence.

Open research

Open question
Preserve and decode the mainnet coinbase height bytes at the BIP 34 enforcement boundaries, especially blocks 224,413, 227,835 and 227,931, so the standards chronology is paired with the actual chain artifacts.