Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@

### Changed

- [#6145](https://github.com/ChainSafe/forest/pull/6145) Updated `forest-cli snapshot export` to use v2 format by default.

### Removed

### Fixed
Expand Down
4 changes: 2 additions & 2 deletions src/cli/subcommands/snapshot_cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pub enum SnapshotCommands {
#[arg(short, long, default_value_t = DEFAULT_RECENT_STATE_ROOTS)]
depth: crate::chain::ChainEpochDelta,
/// Snapshot format to export.
#[arg(long, value_enum, default_value_t = FilecoinSnapshotVersion::V1)]
#[arg(long, value_enum, default_value_t = FilecoinSnapshotVersion::V2)]
format: FilecoinSnapshotVersion,
},
/// Export a diff snapshot between `from` and `to` epochs to `<output_path>`
Expand Down Expand Up @@ -134,7 +134,7 @@ impl SnapshotCommands {
"{spinner} {msg} {binary_total_bytes} written in {elapsed} ({binary_bytes_per_sec})",
)
.expect("indicatif template must be valid"),
).with_message(format!("Exporting {} ...", output_path.display()));
).with_message(format!("Exporting v{} snapshot to {} ...", format as u64, output_path.display()));
pb.enable_steady_tick(std::time::Duration::from_millis(80));
let handle = tokio::spawn({
let path: PathBuf = (&temp_path).into();
Expand Down
Loading