Skip to content

feat: expose retained block range - #199

Merged
bmuddha merged 1 commit into
masterfrom
fix/retained-block-history
Nov 5, 2026
Merged

bmuddha merged 1 commit into
masterfrom
fix/retained-block-history

Conversation

@bmuddha

@bmuddha bmuddha commented Nov 5, 2026

Copy link
Copy Markdown
Collaborator

What changed

Expose published retained slot bounds through blocks().retained_range() so validator RPCs can account for ledger pruning without querying each block. The range comes from existing metadata and is absent for an empty ledger.

Refs magicblock-labs/magicblock-validator#1888. The Aperture changes will follow separately.

Reviewer notes

The range assumes consecutive slots from our controlled producers. Its upper bound reflects ledger publication and can briefly lead the asynchronous block index.

Existing tests now cover empty history, an empty head after rotation, and the boundary advancing after pruning. All 30 targeted Engine tests passed.

@bmuddha bmuddha added the enhancement New feature or request label Nov 5, 2026
@bmuddha bmuddha self-assigned this Nov 5, 2026
@coderabbitai

coderabbitai Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@bmuddha
bmuddha marked this pull request as ready for review November 5, 2026 12:00
@bmuddha
bmuddha merged commit 779f9a2 into master Nov 5, 2026
13 checks passed
@bmuddha
bmuddha deleted the fix/retained-block-history branch November 5, 2026 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant