-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
ledger-tool: save new snapshots to --snapshot-archive-path #24883
Conversation
Thanks for fixing this. I guess it would be nice to have cli test at least for this case. |
Codecov Report
@@ Coverage Diff @@
## master #24883 +/- ##
=========================================
+ Coverage 81.8% 82.0% +0.1%
=========================================
Files 632 597 -35
Lines 167499 165701 -1798
Branches 322 0 -322
=========================================
- Hits 137169 135990 -1179
+ Misses 30217 29711 -506
+ Partials 113 0 -113 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Thanks for fixing this @diman-io!
I agree that tests in this crate would be nice. But since there isn't a solana-ledger-tool testing framework yet, let's address that post-merge @KirillLykov .
(cherry picked from commit 8846aa1)
(cherry picked from commit 8846aa1)
…24896) (cherry picked from commit 8846aa1) Co-authored-by: DimAn <[email protected]>
…24895) (cherry picked from commit 8846aa1) Co-authored-by: DimAn <[email protected]>
I've created an issue for that #24927 |
Problem
Ledger-tool doesn't save new snapshots to --snapshot-archive-path #24875
Summary of Changes
Fixed behavior when choosing an
output-dir
forcreate-snapshot
command.If
output-dir
is not specified in args then it will be--snapshot-archive-path
if present, otherwise--ledger
. Before this fix,--snapshot-archive-path
was not checked.Fixes #24875