Skip to content

docs(proto): correct stale block-range comment on SyncAccountVault/SyncAccountStorageMaps - #2529

Open
pplmaverick wants to merge 1 commit into
0xMiden:nextfrom
pplmaverick:docs/fix-sync-block-range-comment
Open

docs(proto): correct stale block-range comment on SyncAccountVault/SyncAccountStorageMaps#2529
pplmaverick wants to merge 1 commit into
0xMiden:nextfrom
pplmaverick:docs/fix-sync-block-range-comment

Conversation

@pplmaverick

Copy link
Copy Markdown

Summary

The doc comments on SyncAccountVaultRequest and SyncAccountStorageMapsRequest
(proto/proto/rpc.proto, added in #1176 / #1140) state that block_to
must be within 30 blocks of the chain tip, but no such check exists
in the implementation — StateView::scope_range only rejects
ranges that extend beyond the tip (crates/store/src/state/view/mod.rs).

I traced this back to the original commit (99c9848, feat: asset
vault sync #1176) that introduced both endpoints — the 30-block
constraint was never implemented, so this isn't a regression, just
a stale/aspirational comment that could mislead client implementers
into adding unnecessary defensive checks.

Changes

Updated both doc comments to describe actual current behavior:
only rejects ranges where block_to exceeds the chain tip.

No behavioral change — comment-only fix.

…ncAccountStorageMaps

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NFQbFgMuXUiwfujcPFyLqy
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