Skip to content

feat: cli improvements #167

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

feat: cli improvements #167

wants to merge 10 commits into from

Conversation

gzalz
Copy link
Contributor

@gzalz gzalz commented Jun 26, 2025

Problem

  • When running create-merkle-tree-collection or create-meta-merkle-tree, the save_path is passed into read_stake_meta_collection and read_merkle_tree_collection, respectively, with a full path. This causes the read functions to look for a file that doesn't exist, as the expected filename gets concatenated onto the save_path.
  • As operators, we would like improved visibility into distribution account stats for a given epoch

Solution

  • Pass in an unmodified save_path to read functions
  • Add get-tip-distribution-stats for printing a table of distribution account stats for an epoch

Example Output

=== Epoch 816 Tip Distribution Statistics ===
Account                                            Total (SOL)     Type       Commission
-------------------------------------------------------------------------------------
3cUygbA1cf7VUtGMd9PzvmEg21NQw71GT2QpjebuY7sa       0.000000        Tip        0.00      
5T5bwrgrogLuVK2HxQp7hLU3G7gDq2ERBxxz2ysi8Fnc       0.005913        Tip        0.00      
DAzWZVkj174fU58RxdVzUhkooh7hMbz68MnKLHpBbHA8       0.000000        Tip        10.00     
6etyciw5RyQc4wF4k7rJseVwcL6GUaNL6qd4mUvLaxpo       0.000693        Tip        10.00     
6517fmyqueqtYHsX1XTLce89qQKz3P18SBadQZwFMude       0.000342        Tip        0.00      
...
6X22eETjFXgnjAkrJD6QwYfJU1M2G4TKsYf7hKkxjQ7v       0.000001        Priority   50.00     
3WLArUmG3hPim8bh3jGvDLQTND3hADTVui34cNhqM1v6       0.000106        Priority   50.00     
EmdsDzsWyVthTdKaPVaa23TuVroo5AxXJ4aaUxn5ayFU       0.000821        Priority   50.00     
-------------------------------------------------------------------------------------
TOTAL                                              44.399631       ALL   

@gzalz gzalz force-pushed the fix/cli-commands branch from b986150 to 99ee859 Compare July 15, 2025 19:44
@gzalz gzalz changed the title fix: cli merkle file commands save_path feat: cli improvements Jul 15, 2025
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