# Checkpoints

> Pearl's checkpoints: one known block hash every 10,000 blocks, what nodes do with them (no forks below, faster sync, seeder filtering) and how to verify them.

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

Every block hash depends on the block before it. So if you know the hash of block 120,000, you know, in effect, the entire chain up to that point: change any earlier byte and that hash would come out different.

Pearl’s node software ships with such hashes written in. They are [checkpoints](https://pearlcodex.com/glossary/#checkpoint): one known block hash every 10,000 blocks. A node checks the chain it downloads against them and refuses anything that disagrees.

## Try it

Edit an old block in this little chain and watch every later hash change. A checkpoint is simply one of those later hashes, written down in advance.

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

## What are Pearl’s checkpoints?

Twelve pairs of height and block hash, in pearld v1.5.5:

| Height  | Block hash                                                         |
| ------- | ------------------------------------------------------------------ |
| 10,000  | `a3c196fb1c3f7837bbebd69b98fc451d88d48083af98c318c78486d7f1888490` |
| 20,000  | `513270b25c6d538f38b26ecdc014f2a809639ec7ebd3c09e4685675311420273` |
| 30,000  | `fd61132c2ad6c22fa48a8df483bc6b885c12ceeb3fe0a9fa55eb5beb849fac7b` |
| 40,000  | `35aac0e2a1e7f2d54924d584cf423b56f0d72d6770ee8365dc1667dbb5b5b320` |
| 50,000  | `608f32e5390b2ae964c986a53e1be10ba4a640f3ccecf96d6b7838e06cb517ff` |
| 60,000  | `5a7f0590c3a89099b2d0f1509d2186c73bc3d8e2e4a60e7ce4ec236856900dad` |
| 70,000  | `281a3469d55226bb9e1b3ccee06eeb923177817b4cdead75131074b171b215c1` |
| 80,000  | `69d40caca39b3c04ee55589d13cd1c5c546a3eb8712a3367840c5f67ab707cfc` |
| 90,000  | `0738b30bb353820a4f97331d805d134de4321a5fc5c8b2955988e7291a0c8562` |
| 100,000 | `ca8d5f604a9021e538f31472d9a9641c7bc46a6b8d591748e2869429571edbfb` |
| 110,000 | `c119b81da722428e61dcda4ec1d6a2a56e6e40acb29592d11081538ab3d50630` |
| 120,000 | `a5f57e441de1da43a27b4bee471c7a7bdd8e36664050385bf0a1b760d2a84b7d` |

Each hash was checked against Pearl’s public block explorer, and all twelve match. For block 120,000, the research behind this site went further: it fetched the raw block and hashed its header with Pearl’s own code, which gives exactly the checkpoint hash.

## When is a checkpoint added?

Once a block is deep enough that nobody expects it to change. The code’s rule of thumb is `CheckpointConfirmations = 2016`: a candidate must have at least 2,016 blocks on top of it, about four and a half days at the target pace. Then a developer adds the next multiple of 10,000 in a new release.

So the list grows with each release, and older releases simply know fewer checkpoints.

## What does a node do with them?

Several things, all in pearld v1.5.5:

1. **Match**

   A block at a checkpoint height must have exactly the checkpoint’s hash, or it fails with `ErrBadCheckpoint`, whatever its work.

2. **No forks below the latest**

   A block that would fork the chain below the latest checkpoint (block 120,000) is refused with `ErrForkTooOld`. The code comment’s reason: such blocks build on old, easier difficulty and could be used to waste memory and disk. It also means no reorganization can reach below that block.

3. **Skip script checks below it**

   While catching up, a node takes the blocks up to the next checkpoint in order and checks each against the headers it has already verified. A block that matches is fast-added: its scripts and signatures aren’t run, because the checkpoint’s hash already pins every transaction through the Merkle roots. Running scripts is the slowest part of checking a block, so this is a big speed-up. Each block’s certificate is still verified. Since v1.5.5, a block below the checkpoint that arrives any other way has its scripts run.

4. **Sync headers in checkpoint-sized steps**

   A new node downloads headers, with their certificates, up to the next checkpoint before it fetches the blocks. See [messages](https://pearlcodex.com/technical/networking/messages/).

5. **Sanity-check claimed difficulty**

   Before fully checking an unknown block, a node compares its bits with the last checkpoint’s: over a time D, the target can’t have grown by more than (87/32) per started week. See [WTEMA](https://pearlcodex.com/technical/difficulty/wtema/).

Pearl’s DNS seeders use checkpoints too. They only hand out addresses of nodes whose chain reaches at least the latest checkpoint, which weeds out nodes stuck on an old, pre-fork chain. See [peers and seeds](https://pearlcodex.com/technical/networking/peers-and-seeds/).

## Why one every 10,000 blocks?

The comment next to the list gives the reason: “denser checkpoints cap how much headers-first sync progress a peer disconnect can throw away.” A new node syncs headers one checkpoint-sized stretch at a time. If the peer it’s syncing from drops out halfway, the node has at most one stretch to redo.

On Pearl that matters more than on Bitcoin, because each header travels with its roughly 60 KB certificate, and the node verifies every one.

## Doesn’t that mean trusting the developers?

A little, and it’s worth being clear how much.

The checkpoints are in the open source code, and anyone can compare them with the chain, as this page’s research did. A checkpoint can’t make an invalid block valid: blocks below it still need valid certificates and must link up correctly. What it does do is **freeze history**: a node won’t consider any chain that disagrees with a checkpoint or forks below the latest one, however much work it has. And below the latest checkpoint, transaction scripts aren’t re-checked during sync.

So you trust that the block hashes in the release were the real chain when they were written in, something you can check yourself, in exchange for faster syncing and protection against deep rewrites.

**Make a guess:** An attacker secretly mines a chain from block 115,000 and, by October 2026, it has more total work than the real chain. Can they reorganize Pearl nodes onto it?

**Answer:** No, not nodes running v1.5.5.

Their chain forks at 115,000, below the latest checkpoint, 120,000. Up-to-date nodes refuse its blocks with `ErrForkTooOld`, and its block 120,000 wouldn’t match the checkpoint hash anyway. Above the latest checkpoint, though, only the most-work rule protects the chain.

> **Pearl vs Bitcoin**
>
> pearld inherits its checkpoint machinery from btcd, a Bitcoin node, and Bitcoin Core once used checkpoints the same way. But Bitcoin Core stopped adding them long ago, around block 295,000 in 2014, and leans on other protections. Pearl does the opposite: a new checkpoint every 10,000 blocks, and its DNS seeders filter peers by them.

**Code: matching checkpoints and refusing old forks**

From [`validate.go`](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/node/blockchain/validate.go#L705-L726):

`node/blockchain/validate.go`

```go
blockHash := header.BlockHash()
if !c.VerifyCheckpoint(blockHeight, &blockHash) {
	return ruleError(ErrBadCheckpoint, str)
}
checkpointNode, err := c.FindPreviousCheckpoint()
if checkpointNode != nil && blockHeight < checkpointNode.Height() {
	return ruleError(ErrForkTooOld, str)
}
```

The list itself is in [`params.go`](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/node/chaincfg/params.go#L373-L390). During sync, a block that matches the next checkpointed header is flagged for a fast add in [`manager.go`](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/node/netsync/manager.go#L874-L896):

`node/netsync/manager.go`

```go
behaviorFlags := blockchain.BFNone
if sm.headersFirstMode {
	firstNodeEl := sm.headerList.Front()
	if firstNodeEl != nil {
		firstNode := firstNodeEl.Value.(*headerNode)
		if blockHash.IsEqual(firstNode.hash) {
			behaviorFlags |= blockchain.BFFastAdd
		}
	}
}
```

When such a block extends the chain, [`chain.go`](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/node/blockchain/chain.go#L1205-L1256) skips `checkConnectBlock`, where the scripts run. Up to v1.5.3, `checkConnectBlock` also skipped the scripts of any block at or below the latest checkpoint. v1.5.5 removed that shortcut, and the scripts now always run there ([`validate.go`](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/node/blockchain/validate.go#L1113-L1123)).

## In short

- A checkpoint is a (height, block hash) pair built into pearld. v1.5.5 has twelve: one every 10,000 blocks from 10,000 to 120,000.
- A block at a checkpoint height must have exactly that hash, and nodes refuse any block that forks the chain below the latest checkpoint.
- While catching up below the latest checkpoint, nodes skip the script checks of blocks that match the checkpointed headers, but they still verify every block’s certificate.
- A new node syncs headers up to the next checkpoint first, and Pearl’s DNS seeders only list peers whose chain reaches the latest checkpoint.
- A checkpoint is only added once it is at least 2,016 blocks deep, and anyone can check the hashes against the chain.

## Read the code

- [The twelve mainnet checkpoints](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/node/chaincfg/params.go#L373-L390) `node/chaincfg/params.go:373-390`
- [CheckpointConfirmations = 2016](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/node/blockchain/checkpoints.go#L18-L19) `node/blockchain/checkpoints.go:18-19`
- [Checkpoint must match; no forks below the latest (ErrForkTooOld)](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/node/blockchain/validate.go#L705-L726) `node/blockchain/validate.go:705-726`
- [During sync, blocks that match the checkpointed headers are fast-added](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/node/netsync/manager.go#L874-L896) `node/netsync/manager.go:874-896`
- [A fast-added block skips the connect checks, scripts included](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/node/blockchain/chain.go#L1205-L1256) `node/blockchain/chain.go:1205-1256`
- [Since v1.5.5, scripts run below the checkpoint for any other block](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/node/blockchain/validate.go#L1113-L1123) `node/blockchain/validate.go:1113-1123`
- [Headers-first sync up to the next checkpoint](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/node/netsync/manager.go#L431-L444) `node/netsync/manager.go:431-444`

## Sources

### Pearl source

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

### Pearl docs

- [Pearl DNS seeder plugin README](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/coredns-dnsseed/dnsseed/README.md)

### Chain data

- [Pearl Blockbook (block hashes by height)](https://blockbook.pearlresearch.ai)
