Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

RevertCmd: Expose database params via CLI #14182

Merged
merged 2 commits into from
May 21, 2023
Merged
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
10 changes: 9 additions & 1 deletion client/cli/src/commands/revert_cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

use crate::{
error,
params::{GenericNumber, PruningParams, SharedParams},
params::{DatabaseParams, GenericNumber, PruningParams, SharedParams},
CliConfiguration,
};
use clap::Parser;
Expand All @@ -41,6 +41,10 @@ pub struct RevertCmd {
#[allow(missing_docs)]
#[clap(flatten)]
pub pruning_params: PruningParams,

#[allow(missing_docs)]
#[clap(flatten)]
pub database_params: DatabaseParams,
}

/// Revert handler for auxiliary data (e.g. consensus).
Expand Down Expand Up @@ -79,4 +83,8 @@ impl CliConfiguration for RevertCmd {
fn pruning_params(&self) -> Option<&PruningParams> {
Some(&self.pruning_params)
}

fn database_params(&self) -> Option<&DatabaseParams> {
Some(&self.database_params)
}
}