Skip to content

fix: add missing list validation for sync_transactions and remove inc…#1687

Merged
Mirko-von-Leipzig merged 3 commits into
0xMiden:nextfrom
johnh4098:fix-rpc-list-validation
Feb 19, 2026
Merged

fix: add missing list validation for sync_transactions and remove inc…#1687
Mirko-von-Leipzig merged 3 commits into
0xMiden:nextfrom
johnh4098:fix-rpc-list-validation

Conversation

@johnh4098

Copy link
Copy Markdown
Contributor

noticed while reading through the rpc code that sync_transactions was missing the account_ids list validation at the RPC layer - all other endpoints with repeated list params already had this check. the store layer was validating it, but requests should be rejected early at the RPC boundary.

also removed the RPC_LIMITS entries for SyncAccountVault and SyncAccountStorageMaps since they accept a single account_id, not a repeated list - having list limits for them was misleading for clients calling get_limits.

partially addresses #1080

cargo check passes.

…orrect RPC limits

sync_transactions was the only endpoint with a repeated list param
that wasn't validated at the RPC layer. also removed misleading
RPC_LIMITS entries for SyncAccountVault and SyncAccountStorageMaps
since they take a single account_id, not a list.
@drahnr drahnr added the no changelog This PR does not require an entry in the `CHANGELOG.md` file label Feb 18, 2026
@drahnr

drahnr commented Feb 18, 2026

Copy link
Copy Markdown
Contributor

Please adjust the CI check for the get limits endpoint

@drahnr

drahnr commented Feb 18, 2026

Copy link
Copy Markdown
Contributor

Running cargo check is not enough before submitting a PR. Please take a look at the provided Makefile

@johnh4098

Copy link
Copy Markdown
Contributor Author

fixed - updated the get_limits test assertions. also ran clippy. will use Makefile checks next time, thanks for the heads up.

@bobbinth bobbinth 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.

Looks good! Thank you!

@Mirko-von-Leipzig Mirko-von-Leipzig merged commit 5f65682 into 0xMiden:next Feb 19, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no changelog This PR does not require an entry in the `CHANGELOG.md` file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants