chore(cmd): utils to support slot hash debug tooling#1203
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests.
... and 2 files with indirect coverage changes 🚀 New features to boost your workflow:
|
Rexicon226
suggested changes
Feb 3, 2026
ce12c1e to
da20824
Compare
6bb797e to
e250f1f
Compare
2f174ea to
8825886
Compare
Rexicon226
suggested changes
Feb 10, 2026
d80ce78 to
ae30019
Compare
Rexicon226
previously approved these changes
Feb 10, 2026
ae30019 to
989f40b
Compare
- retain snapshot-dir and geyser-dir which override defaults within specified validator dir - create the validator dir if it does not exist - support sym links for snapshots
…atabase - Add 'bounds' subcommand to print min/max slot in ledger - Add 'retain' subcommand to purge slots outside specified range
- Add flag to log highest finished slot when it updates in setBottom - Wire flag through cmd.zig -> config.zig -> service.zig -> shred_tracker - Log directly in existing code path, no separate thread
- Add derivePathFromValidatorDir to config.Cmd for DRY path resolution - Replace 7 snapshot_dir and 3 geyser.pipe_path inline derivations - Auto-detect existing genesis.bin in validator_dir before downloading - Minor formatting improvements for multiline help strings
- Replace @cImport with bzip2 mod via translate-c - Simplify genesis_download to use new bzip2 module import - Fix path handling in cmd.zig and config.zig for validator-dir
- allow ensureValidatorDir to create directory if it does not exist - move ensureValidatorDir dir to outside sub command
989f40b to
6596885
Compare
dnut
approved these changes
Feb 13, 2026
6596885 to
cad3928
Compare
ajw221
approved these changes
Feb 13, 2026
- Use openFile instead of access for genesis file existence check - Replace allocPrint with bufPrint for genesis URL to avoid allocation - Use makeOpenPath to simplify directory creation logic - Remove unnecessary min cap on decompression buffer size - Add TODO for future path allocation improvements
cad3928 to
d24489b
Compare
ajw221
pushed a commit
that referenced
this pull request
Feb 13, 2026
# Summary - Add option to specify validator directory - Support genesis downloads instead of relying on local copies - Add ledger tool for checking ledger bounds and trimming to range - Add flag to log the highest completed slot in the shred tracker --------- Co-authored-by: Ubuntu <ubuntu@ip-172-31-33-159.ap-southeast-2.compute.internal>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary