Skip to content

fix(store): reject future sync block ranges#2123

Open
Mr-kay-cloud2 wants to merge 1 commit into
0xMiden:nextfrom
Mr-kay-cloud2:fix/block-range-chain-tip
Open

fix(store): reject future sync block ranges#2123
Mr-kay-cloud2 wants to merge 1 commit into
0xMiden:nextfrom
Mr-kay-cloud2:fix/block-range-chain-tip

Conversation

@Mr-kay-cloud2
Copy link
Copy Markdown
Contributor

Summary

  • Rejects sync requests whose block_to is greater than the current chain tip.
  • Adds explicit FutureBlock errors for nullifiers, account vault, storage maps, and transactions sync paths.
  • Aligns these endpoints with existing sync_notes chain-tip validation.

Closes #1866

Testing

  • cargo check -p miden-node-store --all-targets could not complete locally on Windows because the miden-agglayer dependency checkout fails on an invalid : path in a submodule file.

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.

Validate block_to is not greater than chain tip

1 participant