Skip to content

feat: add block_num parameter to check_nullifiers_by_prefix#707

Merged
TomasArrachea merged 7 commits intotomasarrachea-stream-sync-statefrom
tomasarrachea-filter-nullifiers-by-blocknum
Feb 20, 2025
Merged

feat: add block_num parameter to check_nullifiers_by_prefix#707
TomasArrachea merged 7 commits intotomasarrachea-stream-sync-statefrom
tomasarrachea-filter-nullifiers-by-blocknum

Conversation

@TomasArrachea
Copy link
Collaborator

@TomasArrachea TomasArrachea commented Feb 19, 2025

This PR introduces a block_num parameter to the CheckNullifiersByPrefix endpoint. Only nullifiers from blocks equal or bigger than block_num will be included in the response. This change allows using the endpoint to request nullifiers reducing the size of the response.

This is part of the changes needed for #685, in order to remove the nullifiers from the SyncState response.

TODO: This requires an additional PR in miden-client to update the endpoint request.

@TomasArrachea TomasArrachea marked this pull request as ready for review February 19, 2025 18:32
Copy link
Contributor

@bobbinth bobbinth left a comment

Choose a reason for hiding this comment

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

Looks good! Thank you! One last thing that's I'd probably do is update the description of the endpoint in the README: https://github.com/0xPolygonMiden/miden-node/tree/next/crates/rpc#checknullifiersbyprefix.

@TomasArrachea TomasArrachea merged commit eb2de00 into tomasarrachea-stream-sync-state Feb 20, 2025
2 checks passed
@TomasArrachea TomasArrachea deleted the tomasarrachea-filter-nullifiers-by-blocknum branch February 20, 2025 18:53
TomasArrachea added a commit that referenced this pull request Feb 20, 2025
* feat: add block_num parameter to check_nullifiers_by_prefix

* chore: update CHANGELOG

* review: add `block_num` parameter as required

* review: update CHANGELOG

* review: update doc comment

* chore: update rpc README
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.

3 participants