Skip to content

[Storehouse] 011 - Add checkpoint iterate nodes function and util#8587

Open
zhangchiqing wants to merge 3 commits into
leo/payloadless-util-convert-checkpointfrom
leo/payloadless-checkpoint-iteration
Open

[Storehouse] 011 - Add checkpoint iterate nodes function and util#8587
zhangchiqing wants to merge 3 commits into
leo/payloadless-util-convert-checkpointfrom
leo/payloadless-checkpoint-iteration

Conversation

@zhangchiqing

@zhangchiqing zhangchiqing commented Jun 25, 2026

Copy link
Copy Markdown
Member

This PR introduces a utility that streams a v6 or v7 checkpoint file and reports the total number of leaf and interim nodes. To minimize memory usage, it processes the checkpoint incrementally instead of loading the entire checkpoint into memory and reconstructing the trie.

While the initial use case is fairly specific, the implementation provides a generic checkpoint trie node iterator (ledger/complete/wal/checkpoint_node_iterator.go#IterateCheckpointNodes) that can be reused for other purposes. For example, it can be used to collect payload size statistics, group nodes by owner key, or support other checkpoint analysis tasks.

@coderabbitai

coderabbitai Bot commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: c015092c-6cd9-431e-9186-482dd69edc2a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch leo/payloadless-checkpoint-iteration

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@zhangchiqing
zhangchiqing marked this pull request as ready for review June 25, 2026 23:51
@zhangchiqing
zhangchiqing requested a review from a team as a code owner June 25, 2026 23:51
@zhangchiqing zhangchiqing changed the title [Storehouse] Add checkpoint iterate nodes function and util [Storehouse] 010 - Add checkpoint iterate nodes function and util Jun 26, 2026
@zhangchiqing zhangchiqing changed the title [Storehouse] 010 - Add checkpoint iterate nodes function and util [Storehouse] 011 - Add checkpoint iterate nodes function and util Jun 26, 2026
@zhangchiqing
zhangchiqing force-pushed the leo/payloadless-util-convert-checkpoint branch from a9c6645 to ca39b1a Compare July 2, 2026 19:11
@zhangchiqing
zhangchiqing force-pushed the leo/payloadless-checkpoint-iteration branch from 534061d to b826c88 Compare July 2, 2026 19:12
@zhangchiqing
zhangchiqing force-pushed the leo/payloadless-util-convert-checkpoint branch from ca39b1a to 4d5c8bf Compare July 13, 2026 17:26
@zhangchiqing
zhangchiqing force-pushed the leo/payloadless-checkpoint-iteration branch from b826c88 to 39f9dcb Compare July 13, 2026 17:26
@zhangchiqing
zhangchiqing force-pushed the leo/payloadless-util-convert-checkpoint branch from 4d5c8bf to 91eb0a7 Compare July 14, 2026 19:56
@zhangchiqing
zhangchiqing force-pushed the leo/payloadless-checkpoint-iteration branch from 39f9dcb to 61ed3ef Compare July 14, 2026 20:01
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.

1 participant