Skip to content

adjust page sizes - #163

Merged
mononaut merged 3 commits into
mempoolfrom
mononaut/page-sizes
Oct 14, 2026
Merged

mononaut merged 3 commits into
mempoolfrom
mononaut/page-sizes

Conversation

@mononaut

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The limits are consistently applied, preserve existing defaults, and have focused unit coverage.

0 open findings

What changed in this PR

Caps REST max_txs overrides at configured page sizes to prevent oversized responses.

Changes:

  • Adds a shared page-size capping helper.
  • Applies caps across transaction and mempool pagination endpoints.
  • Adds unit coverage and updates configuration help text.
File Description
src/​rest.rs Caps requested transaction counts and tests the helper.
src/​config.rs Clarifies that page-size settings are defaults and maximums.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@mononaut
mononaut merged commit eda20be into mempool Oct 14, 2026
14 checks passed
@mononaut
mononaut deleted the mononaut/page-sizes branch October 14, 2026 06:51
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.

4 participants