Skip to content

Commit

Permalink
pruning: reworked command line option descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
fixxxedpoint committed Dec 1, 2023
1 parent 2d8b593 commit 1c3c812
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions bin/node/src/aleph_cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ pub struct AlephCli {
#[clap(long, default_value_t = 20)]
max_nonfinalized_blocks: u32,

/// Enable database pruning
/// Note that we only support pruning with ParityDB.
/// Enable database pruning. It removes older entries in the state-database. Pruning of blocks is not supported.
/// Note that we only support pruning with ParityDB database backend.
/// See also `--state-pruning` option for more details.
#[clap(long, default_value_t = false)]
enable_pruning: bool,

Expand Down
2 changes: 1 addition & 1 deletion bin/node/src/pruning_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ impl PruningConfigValidator {
pub fn report(self) {
if !self.pruning_enabled {
if self.overwritten_pruning {
warn!("Pruning not enabled. Switching to keeping all block bodies and states.");
warn!("Pruning not enabled. Switching to keeping all block bodies and states. Please use `--enable-pruning` flag.");
}
return;
}
Expand Down

0 comments on commit 1c3c812

Please sign in to comment.