Skip to content

docs(cache): clarify partial DA submissions - #3532

Open
holmeschina wants to merge 1 commit into
evstack:mainfrom
holmeschina:main
Open

holmeschina wants to merge 1 commit into
evstack:mainfrom
holmeschina:main

Conversation

@holmeschina

@holmeschina holmeschina commented Dec 6, 2026 •

Copy link
Copy Markdown

Overview

The pending header and data cache comments describe DA batch submission as atomic. In practice, a DA response can report that only a prefix of the batch was submitted, and the submitter advances the cursor through that prefix.

Update both comments to describe partial submissions and when the cursors skip entries, including blocks with no transactions for the data cursor.

Summary by CodeRabbit

  • Documentation
    • Clarified how pending data and headers are submitted in ordered, size-limited batches, including when submission cursors advance or skip items.
    • Documented that items may be resubmitted if a submission response is lost.

Signed-off-by: holmeschina <holmeschina88@gmail.com>
@coderabbitai

coderabbitai Bot commented Dec 6, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The comments for pending data and headers now describe ordered, size-limited DA batches, cursor advancement, skipped entries, and possible resubmission after a lost response.

Changes: Pending Submission Documentation

Layer / File(s) Summary
Document batch and cursor behavior
block/internal/cache/pending_data.go, block/internal/cache/pending_headers.go
The comments describe ordered, size-limited submissions, cursor advancement through the prefix reported as submitted, skipped entries, and possible resubmission after a lost response.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other

Suggested reviewers: manav-aggarwal, tac0turtle

Merge Risk: Minimal · up to 2eb15

This change only updates documentation comments on pending DA batch submission and cursor behavior. It has no runtime effect and is safe to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "docs(cache): clarify partial DA submissions" matches the main change. The PR updates the pending header and pending data cache comments so they describe DA batch submission as possibly part…
Description check Passed The description states the problem: the header and data cache comments describe DA batch submission as atomic, but a DA response can report that only a prefix was submitted. It states the fix: update …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "docs(cache): clarify partial DA submissions" matches the main change. The PR updates the pending header and pending data cache comments so they describe DA batch submission as possibly partial rather than atomic, and describe when cursors skip entries. The title uses a Conventional Commits prefix and names the specific aspect changed.

Full details: Description check

Explanation

The description states the problem: the header and data cache comments describe DA batch submission as atomic, but a DA response can report that only a prefix was submitted. It states the fix: update both comments to describe partial submissions and cursor skips, including empty blocks for the data cursor. This matches the raw summary, which lists the changed comments in pending_data.go and pending_headers.go. The template's Overview section is filled in. The description does not link an issue or use a Closes line, but the template only asks for one if an issue exists.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • 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

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 90890707-5dc6-4cee-b503-bd6c722dc479
Commits

Reviewing files that changed from the base of the PR and between db30618 and 2eb1520.

Files selected for processing: 2

  • block/internal/cache/pending_data.go
  • block/internal/cache/pending_headers.go

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.

This branch has not been deployed

No deployments
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