Skip to content
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

[4.0] Added snapshot to-json subcommand to leap-util #450

Merged
merged 4 commits into from
Nov 8, 2022

Conversation

vladtr
Copy link
Contributor

@vladtr vladtr commented Nov 7, 2022

This PR adds the following subcommand:

 bin/leap-util snapshot to-json --help
Convert snapshot file to json format
Usage: bin/leap-util snapshot to-json [OPTIONS]

Options:
  -h,--help              Print this help message and exit
  --help-all             Show all help
  -i,--input-file TEXT REQUIRED
                         Snapshot file to convert to json format, writes to <file>.json if output file not specified (tmp state dir used).
  -o,--output-file TEXT  The file to write the output to (absolute or relative path).  If not specified then output is to <input-file>.json.
  --chain-id TEXT        Specify a chain id in case it is not included in a snapshot or you want to override it.
  --db-size UINT [65536] 
                         Maximum size (in MiB) of the chain state database

@vladtr vladtr linked an issue Nov 7, 2022 that may be closed by this pull request
programs/leap-util/actions/subcommand.hpp Outdated Show resolved Hide resolved
programs/leap-util/actions/snapshot.cpp Outdated Show resolved Hide resolved
programs/leap-util/actions/snapshot.cpp Show resolved Hide resolved
programs/leap-util/actions/snapshot.cpp Outdated Show resolved Hide resolved
programs/leap-util/actions/snapshot.cpp Show resolved Hide resolved
@vladtr vladtr marked this pull request as ready for review November 8, 2022 16:00
Copy link
Member

@heifner heifner left a comment

Choose a reason for hiding this comment

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

Please update the PR description with the latest options.

@vladtr vladtr merged commit e16a171 into main Nov 8, 2022
@vladtr vladtr deleted the add-snapshot-subcommand branch November 8, 2022 16:34
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.

Add snapshot sub-command to leap-util
2 participants