Skip to content

cumulus: resubmission store - #12091

Merged
alindima merged 243 commits into
masterfrom
mchr-unicluded-segment-store
Jul 14, 2026
Merged

cumulus: resubmission store#12091
alindima merged 243 commits into
masterfrom
mchr-unicluded-segment-store

Conversation

@mchristou

@mchristou mchristou commented May 18, 2026

Copy link
Copy Markdown
Contributor

Closes #12034.

Adds cumulus-client-resubmission-store which records what a collator needs to resubmit a collation for an unincluded parablock.

For each imported parablock, keyed by its block hash, it persists:

  • the block's storage proof
  • the capture time (time_ms)
  • the relay-parent session
  • the core it was submitted on (resolved index + selector)

eskimor and others added 30 commits December 17, 2025 16:00
For simplicity, reasoning and efficiency.
+ Refactor/cleanup + some docs.
parents

Remove per-parachain tracking of allowed relay parents in backing
implicit view. Allowed relay parents are now computed per relay parent
(globally) based on scheduling lookahead, rather than per parachain.

Changes:
- Remove `collating_for` parameter and para_id tracking from View
- Update all callers to remove para_id arguments
- Refactor tests with helper functions to reduce ~150 lines of
  duplication
- Add comprehensive documentation to tests explaining expected behavior
- Clarify `paths_via_relay_parent` returns full paths from oldest block
  to leaf

This simplification aligns with the reality that all parachains share
the same allowed relay parent windows at a given relay chain block.
Comment thread cumulus/client/consensus/aura/src/collators/slot_based/resubmission.rs Outdated

@skunert skunert left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looking pretty good! Left some small comments.

Comment thread cumulus/client/resubmission-store/src/lib.rs Outdated
Comment thread cumulus/client/resubmission-store/src/lib.rs
Comment thread cumulus/client/consensus/aura/src/collators/slot_based/block_builder_task.rs Outdated
Comment thread cumulus/client/consensus/aura/src/collators/slot_based/resubmission.rs Outdated
Comment thread cumulus/client/consensus/aura/src/collators/slot_based/resubmission.rs Outdated

@iulianbarbu iulianbarbu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice work, left just a few observations. Nothing outstanding. 🚀

Comment thread cumulus/client/consensus/aura/src/collators/slot_based/block_builder_task.rs Outdated
Comment thread cumulus/client/consensus/aura/src/collators/slot_based/block_import.rs Outdated
Comment thread cumulus/client/consensus/aura/src/collators/slot_based/resubmission.rs Outdated
Comment thread cumulus/client/resubmission-store/src/lib.rs Outdated
Comment thread cumulus/client/resubmission-store/src/lib.rs Outdated
Comment thread prdoc/pr_12091.prdoc Outdated
Comment thread cumulus/client/resubmission-store/src/lib.rs Outdated
Comment thread cumulus/client/consensus/aura/src/collators/slot_based/block_builder_task.rs Outdated
Comment thread cumulus/client/consensus/aura/src/collators/slot_based/block_builder_task.rs Outdated
Comment thread cumulus/client/consensus/aura/src/collators/slot_based/block_builder_task.rs Outdated

@iulianbarbu iulianbarbu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🚀 Just that I left my thoughts on how to approach both concerns of storing pvd data at relay parents in the store (meaning of block-builder and resubmissions). I can open an issue and address it afterwards if it sounds reasonable.

Comment thread cumulus/client/resubmission-store/src/lib.rs Outdated
@mchristou
mchristou enabled auto-merge July 8, 2026 14:53
Comment thread cumulus/client/consensus/aura/src/collators/slot_based/block_import.rs Outdated
@mchristou
mchristou added this pull request to the merge queue Jul 9, 2026
@alindima
alindima removed this pull request from the merge queue due to a manual request Jul 9, 2026
@iulianbarbu
iulianbarbu added this pull request to the merge queue Jul 13, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jul 13, 2026
@alindima
alindima added this pull request to the merge queue Jul 13, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jul 13, 2026
@mchristou
mchristou added this pull request to the merge queue Jul 13, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jul 13, 2026
@alindima
alindima added this pull request to the merge queue Jul 14, 2026
Merged via the queue into master with commit 470d1ad Jul 14, 2026
398 of 416 checks passed
@alindima
alindima deleted the mchr-unicluded-segment-store branch July 14, 2026 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T20-low-latency for issues and PRs related to Low Latency work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cumulus: implement unincluded segment store

7 participants