Replay and compare
Replay (available)
The reference indexer holds no persistent state. Restarting it replays every block from height 0 (recording hashes) and applies blocks from H_start. Replay is deterministic: same chain in, same ledger out.
Check it yourself on any indexer exposing the API:
curl -s "$INDEXER/api/status" | jq '{height, mints, burned, circulating, holders}' > before.json
# restart the indexer, wait until it reaches the same height
curl -s "$INDEXER/api/status" | jq '{height, mints, burned, circulating, holders}' > after.json
diff before.json after.json && echo "replay identical"
Expected output:
replay identical
Counters are a weak check. The full check is the ledger:
curl -s "$INDEXER/api/holders" | jq -S . | shasum -a 256
Run on both sides; equal hashes mean equal per-address totals.
Compare two indexers
| Step | Command | Status |
|---|---|---|
| Same tip | curl -s $A/api/status \| jq .height vs $B |
available |
| Same counters | mints, burned from /api/status |
available |
| Same holder totals | hash of /api/holders |
available |
| Same per-output ranges | hash of a full ledger dump | not yet available (no dump endpoint) |
| Same per-block digest | State digest | not yet available |
| Bisect to first differing block | digest by height | not yet available |
When they differ
- Find the lowest height where counters differ (query both at increasing heights — needs a height parameter,
not yet available; until then compare event lists from/api/events). - Take the transactions in that block that appear in one side's mints or rejections but not the other's.
- Run Judgment pseudocode by hand on each; the side that disagrees with the text is wrong.
- Report with the block height, txid and the condition number.