Skip to content

core/filtermaps: update BSC mainnet and chapel log index checkpoints - #3784

Merged
zlacfzy merged 1 commit into
bnb-chain:developfrom
zlacfzy:filtermaps_update_checkpoints
Aug 12, 2026
Merged

zlacfzy merged 1 commit into
bnb-chain:developfrom
zlacfzy:filtermaps_update_checkpoints

Conversation

@zlacfzy

@zlacfzy zlacfzy commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

Description

Refresh the embedded filtermaps epoch checkpoints for BSC mainnet and Chapel, up to (near) current head.

  • mainnet: 2477 → 3087 epochs, block 85691799 → 114446835 (~27k blocks behind head)
  • chapel: 107 → 136 epochs, block 94193398 → 123072804

Rationale

checkpoints_bsc_*.json lets a node start the log index at the latest checkpoint instead of replaying the log values of every finalized epoch. The last refresh (#3585) stopped at mainnet block 85691799, ~150 days of chain ago, so a fresh sync was re-rendering 610 epochs it does not have to.

Example

Append-only — the entries already on develop are byte-identical, and appended ones keep blockNumber / firstIndex strictly increasing with firstIndex[e] <= (e+1)*2^26. Sampled new entries (mainnet 93334106 / 103224607 / 109715048 / 114446835, chapel 95858890 / 112711287 / 123072804) match canonical block hashes. Embedded JSON still decodes (decodeCheckpoints panics otherwise):

go test ./core/filtermaps/

Changes

  • core/filtermaps/checkpoints_bsc_mainnet.json: append 610 epoch checkpoints (through block 114446835)
  • core/filtermaps/checkpoints_bsc_chapel.json: append 29 epoch checkpoints (through block 123072804)
Refresh the embedded epoch checkpoints so a fresh node can skip replaying
the log values of all already-finalized epochs when building the filtermaps
log index. Mainnet extends from epoch 2477 (block 85691799) to 3087 (block
114446835), chapel from 107 (block 94193398) to 136 (block 123072804).

Append-only; existing entries are untouched.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@zlacfzy
zlacfzy force-pushed the filtermaps_update_checkpoints branch from aea2f42 to 36fcfd5 Compare August 7, 2026 03:31
@hashdit-bot

hashdit-bot Bot commented Aug 11, 2026

Copy link
Copy Markdown

Pull Request Review

This PR refreshes the embedded BSC filtermap checkpoints by appending 610 mainnet epochs through block 114446835 and 29 Chapel epochs through block 123072804. The changes are data-only and preserve the existing checkpoint entries while extending block IDs and first-index metadata.

Sensitive Content

No sensitive content detected.

Security Issues

No serious security issues detected.


Generated by Hashdit Bot. This tool can absolutely NOT replace manual audits.

@zlacfzy
zlacfzy merged commit 8acf74e into bnb-chain:develop Aug 12, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants