Skip to content

Smaller historical range pages#7867

Merged
achamayou merged 2 commits intomainfrom
smaller_logging_historical_range_pages
May 7, 2026
Merged

Smaller historical range pages#7867
achamayou merged 2 commits intomainfrom
smaller_logging_historical_range_pages

Conversation

@achamayou
Copy link
Copy Markdown
Member

No description provided.

@achamayou achamayou added the run-long-test Run Long Test job label May 7, 2026
@achamayou achamayou marked this pull request as ready for review May 7, 2026 16:06
@achamayou achamayou requested a review from a team as a code owner May 7, 2026 16:06
Copilot AI review requested due to automatic review settings May 7, 2026 16:06
@achamayou achamayou merged commit f3fbb61 into main May 7, 2026
20 checks passed
@achamayou achamayou deleted the smaller_logging_historical_range_pages branch May 7, 2026 16:07
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR reduces the size of paginated historical range queries in the logging sample app, and tightens the Python ledger validator’s Merkle tree initialization by ensuring the “empty leaf” is immutable bytes.

Changes:

  • Reduce historical query pagination size in samples/apps/logging from 10k seqnos/page to 5k seqnos/page.
  • Pass immutable bytes (rather than a mutable bytearray) as the initial “empty leaf” to the Python MerkleTree.

Custom instructions used:

  • .github/copilot-instructions.md
  • .github/instructions/reviewing.instructions.md

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
samples/apps/logging/logging.cpp Lowers max historical range page size to return smaller pages for large range queries.
python/src/ccf/ledger.py Uses immutable bytes for the initial Merkle tree leaf to match MerkleTree.add_leaf(values: bytes) and avoid mutation hazards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

run-long-test Run Long Test job

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants