Skip to content

merge queue: embarking unstable (3351db1) and #9222 together#9269

Closed
mergify[bot] wants to merge 2 commits intounstablefrom
mergify/merge-queue/c988bd4a88
Closed

merge queue: embarking unstable (3351db1) and #9222 together#9269
mergify[bot] wants to merge 2 commits intounstablefrom
mergify/merge-queue/c988bd4a88

Conversation

@mergify
Copy link
Copy Markdown

@mergify mergify Bot commented May 6, 2026

🎉 This pull request has been checked successfully and will be merged soon. 🎉

Branch unstable (3351db1) and #9222 are embarked together for merge.

This pull request has been created by Mergify to speculatively check the mergeability of #9222.
You don't need to do anything. Mergify will close this pull request automatically when it is complete.

Required conditions of queue rule default for merge:

Required conditions to stay in the queue:

---
checking_base_sha: 3351db1ba892b97f7ad851d366ac2a1921ed527f
previous_failed_batches: []
pull_requests:
  - number: 9222
    scopes: []
scopes: []
...

dapplion and others added 2 commits April 29, 2026 12:59
Splits the inner replay loop out of `reconstruct_historic_states` into a new
public `reconstruct_historic_states_on_range(with_state_at_slot, from_slot,
to_slot, write_block_roots, on_commit)` so it can be reused by an upcoming
ERA file importer (separate PR).

`reconstruct_historic_states` keeps its signature and behaviour, now a thin
shell that derives the slot range from the anchor/split, then delegates to
the ranged helper with `write_block_roots = false` and an `on_commit`
closure that performs the existing per-commit anchor advance and the
final flip to `as_archive_anchor()`.

The ranged helper:
- iterates `BeaconBlockRoots` directly via `FrozenForwardsIterator`,
- detects skipped slots via `block.slot() != iterator slot` instead of
  tuple-window comparison,
- supports a starting state at any slot `<= from_slot` (catches up via
  `per_slot_processing` in a `while`),
- optionally writes the `BeaconBlockRoots` index inline (for callers
  populating the cold DB rather than reading an already-populated one),
- runs a tree-hash equality check against the last stored state root at
  the final slot of the batch.

Verified with `make lint`, `cargo fmt --check`, `cargo nextest run -p store`,
and `cargo nextest run --release -p beacon_chain --test beacon_chain_tests
store_tests::weak_subjectivity_sync` (7/7 pass — covers the existing
reconstruction code path).
@cla-assistant
Copy link
Copy Markdown

cla-assistant Bot commented May 6, 2026

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ dapplion
❌ mergify[bot]
You have signed the CLA already but the status is still pending? Let us recheck it.

@mergify mergify Bot closed this May 6, 2026
@mergify mergify Bot deleted the mergify/merge-queue/c988bd4a88 branch May 6, 2026 02:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant