# Blockchain

> How Pearl's blocks form one chain: hash links, heights, the most-work rule with its quarter-block margin, fixed-height forks, checkpoints and genesis.

Source: https://pearlcodex.com/technical/blockchain/ · Last updated: 2026-10-20 · Checked against Pearl's source code at v1.5.5

A [blockchain](https://pearlcodex.com/glossary/#blockchain) is what you get when every block points back at the one before it. Pearl’s started on 27 April 2026 with the [genesis block](https://pearlcodex.com/glossary/#genesis-block), and a new block has been added roughly every three minutes since.

The point of the chain is agreement. Many nodes, run by strangers, each keep their own copy, and they all end up with the same one. This group explains how: what links the blocks, how they are numbered, what nodes do when the chain splits, and the few places where the rules themselves changed.

## Try it

A short chain of blocks, each linked to the one before by its hash. Change a block and watch every block after it break.

_Interactive: A chain of blocks. Try it on the page: <https://pearlcodex.com/technical/blockchain/>_

## What makes it a chain?

Every 108-byte header begins, after its version, with the 32-byte hash of its parent’s header. And a block’s hash covers its whole header, which in turn commits to the block’s transactions (through the Merkle root) and its mining proof (through the proof commitment).

So changing anything in an old block changes its hash, which breaks its child’s link, which changes the child’s hash, and so on to the tip. Rewriting history means redoing the mining work for every block from that point on. The bytes are on [previous block](https://pearlcodex.com/technical/block/previous-block/).

**Block 130,827 · header · 108 bytes**

```
00000020 999c961b04d94b8b21134e862dc31d5fa56cf9d1f027adb2a0cf95c6525c55eb 6389faa36bd9daffdefc800dea88ac3ef5af1198f7d7179ef3b904420c1cc2c6 1a96d76a a6f36a17 4d52a3fd32160cb032e22edf76912f67dfb1b88946a215281f203836c77ae649
```

| Field                                       | Bytes         | Value                                                                                                                                                                       |
| ------------------------------------------- | ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Version (`header.version`)                  | 4, offset 0   | 0x20000000 · int32 LE. BIP-9 style 0x20000000 since block 1; no consensus meaning in Pearl.                                                                                 |
| Previous block (`header.prevBlock`)         | 32, offset 4  | eb555c52c695cfa0b2ad27f0d1f96ca55f1dc32d864e13218b4bd9041b969c99 · Hash of the parent block, stored byte-reversed; shown in display order.                                  |
| Merkle root (`header.merkleRoot`)           | 32, offset 36 | c6c21c0c4204b9f39e17d7f79811aff53eac88ea0d80fcdeffdad96ba3fa8963 · Root of the SHA256d Merkle tree of this block’s txids, stored byte-reversed.                             |
| Time (`header.timestamp`)                   | 4, offset 68  | 1792513562 (2026-10-20 16:26:02 UTC) · uint32 LE Unix seconds. Must be at least 1 s after the parent and at most 5 min in the future.                                       |
| Bits (`header.bits`)                        | 4, offset 72  | 0x176af3a6 · Compact target. Difficulty 40,157,376.49. The certificate's jackpot hash (not this header's hash) must meet it.                                                |
| Proof commitment (`header.proofCommitment`) | 32, offset 76 | 49e67ac73638201f2815a24689b8b1df672f9176df2ee232b00c1632fda3524d · SHA256d(LE32(certificate version) ‖ public data). Replaces Bitcoin’s nonce: Pearl headers have no nonce. |

- **Block hash:** 1df2f2c1bf39b1a444e622c1788c11736da2f91f4e9a875a38dc23063c6d45b9
- **Height:** 130,827
- **Time:** 2026-10-20 16:26:02 UTC
- **Difficulty:** 40,157,376.49

## How do nodes agree on one chain?

Three rules do the work, each with its own page:

- **Most work wins.** If two miners extend the chain at almost the same moment, nodes follow the branch with more total work. Pearl only switches when the new branch leads by at least a quarter of a block’s work. See [the most-work chain](https://pearlcodex.com/technical/blockchain/most-work-chain/).
- **Old history is pinned.** Every 10,000 blocks, a block hash is written into the software. Nodes refuse chains that disagree with these [checkpoints](https://pearlcodex.com/glossary/#checkpoint), and won’t reorganize below the last one. See [checkpoints](https://pearlcodex.com/technical/blockchain/checkpoints/).
- **Rule changes happen at fixed heights.** Everyone’s software knows in advance the block where a new rule starts. See [forks and upgrades](https://pearlcodex.com/technical/blockchain/forks-and-upgrades/).

## What are the landmarks so far?

- **Genesis block:** height 0 2026-04-27 09:00:00 UTC
- **Block 1:** 3,229.64 PRL the first reward, one second later
- **Hard forks:** 71,935 · 99,000
- **Soft forks:** 91,630 · 96,251
- **Latest checkpoint:** 120,000 one every 10,000 blocks
- **Snapshot tip:** 130,827 20 October 2026

The tip right now is block 130,827.

| Height  | Date       | What happened                                                                                                                |
| ------- | ---------- | ---------------------------------------------------------------------------------------------------------------------------- |
| 0       | 2026-04-27 | Genesis: no reward, and a message quoting Bitcoin block 946,842                                                              |
| 1 to 5  | 2026-04-27 | Mined exactly one second apart, at difficulty 1                                                                              |
| 71,935  | 2026-06-12 | **MoE hard fork.** Blocks must carry a V2 certificate, which adds support for Mixture-of-Experts proofs.                     |
| 91,630  | 2026-07-23 | **Dense-only soft fork.** Mixture-of-Experts proofs are rejected again; only dense proofs count.                             |
| 96,251  | 2026-08-06 | **Rank-penalty soft fork.** Noise rank must be at least 128, and a higher rank makes the winning bar stricter in proportion. |
| 99,000  | 2026-08-11 | **Salted noise-seed hard fork.** Blocks must carry a V3 certificate: the noise seeds now also commit to the matrix sizes.    |
| 120,000 | 2026-09-27 | The latest checkpoint in v1.5.5                                                                                              |

## What’s in this group?

- [Height](https://pearlcodex.com/technical/blockchain/height/): how blocks are numbered, and where the number is written.
- [The most-work chain](https://pearlcodex.com/technical/blockchain/most-work-chain/): branches, reorganizations, confirmations and Pearl’s quarter-block margin.
- [Forks and upgrades](https://pearlcodex.com/technical/blockchain/forks-and-upgrades/): the four fixed-height rule changes and the certificate versions they brought.
- [Checkpoints](https://pearlcodex.com/technical/blockchain/checkpoints/): the twelve block hashes built into the software.
- [The genesis block](https://pearlcodex.com/technical/blockchain/genesis-block/): block 0 byte by byte, and the Bitcoin block it quotes.

> **Pearl vs Bitcoin**
>
> The chain itself works exactly like Bitcoin’s: headers link by SHA256d hashes, and nodes follow the chain with the most work. Three things differ. Pearl won’t switch branches for a lead smaller than a quarter of a block’s work. It changes rules at heights fixed in the software, not by miners signalling with version bits. And it adds a checkpoint every 10,000 blocks, where Bitcoin stopped adding them long ago.

## In this group

1. [Height](https://pearlcodex.com/technical/blockchain/height/): A block’s place in line, counted from zero
2. [The most-work chain](https://pearlcodex.com/technical/blockchain/most-work-chain/): Which branch wins when the chain splits, and by how much it must win
3. [Forks and upgrades](https://pearlcodex.com/technical/blockchain/forks-and-upgrades/): Four rule changes, each switched on at a block height fixed in advance
4. [Checkpoints](https://pearlcodex.com/technical/blockchain/checkpoints/): Twelve block hashes written into the software
5. [The genesis block](https://pearlcodex.com/technical/blockchain/genesis-block/): Block 0, its message, and the Bitcoin block it quotes

## In short

- Each block’s header carries the hash of its parent’s header, so the blocks form one chain back to the genesis block, block 0.
- A block’s height is its position in that chain. Pearl reached block 130,827 on 20 October 2026.
- When branches compete, nodes follow the valid one with the most work, and only switch if it leads by at least a quarter of a block’s work.
- Rule changes switch on at fixed heights: four so far, two hard forks and two soft forks, each tied to the certificate.
- Every 10,000 blocks, a block hash is written into the software as a checkpoint; nodes refuse any chain that disagrees.

## Read the code

- [The header and its PrevBlock link](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/node/wire/blockheader.go#L14-L41) `node/wire/blockheader.go:14-41`
- [ShouldChangeTip, the quarter-block margin](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/node/blockchain/chain.go#L1166-L1188) `node/blockchain/chain.go:1166-1188`
- [Fork heights and checkpoints](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/node/chaincfg/params.go#L364-L390) `node/chaincfg/params.go:364-390`
- [The genesis block](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/node/chaincfg/genesis.go#L90-L106) `node/chaincfg/genesis.go:90-106`

## Sources

### Pearl source

- [Pearl source code at v1.5.5](https://github.com/pearl-research-labs/pearl/tree/v1.5.5)

### Chain data

- [Pearl Blockbook](https://blockbook.pearlresearch.ai)

### Other

- [Bitcoin Developer Guide: block chain](https://developer.bitcoin.org/devguide/block_chain.html)
