Add db params for export-state CLI command (#10830)

This commit is contained in:
Arkadiy Paronyan
2022-02-09 23:55:26 +01:00
committed by GitHub
parent 9a31b2c341
commit 13b7c3ccdf
2 changed files with 10 additions and 2 deletions
@@ -18,7 +18,7 @@
use crate::{
error,
params::{BlockNumberOrHash, PruningParams, SharedParams},
params::{BlockNumberOrHash, DatabaseParams, PruningParams, SharedParams},
CliConfiguration,
};
use clap::Parser;
@@ -42,6 +42,10 @@ pub struct ExportStateCmd {
#[allow(missing_docs)]
#[clap(flatten)]
pub pruning_params: PruningParams,
#[allow(missing_docs)]
#[clap(flatten)]
pub database_params: DatabaseParams,
}
impl ExportStateCmd {
@@ -81,4 +85,8 @@ impl CliConfiguration for ExportStateCmd {
fn pruning_params(&self) -> Option<&PruningParams> {
Some(&self.pruning_params)
}
fn database_params(&self) -> Option<&DatabaseParams> {
Some(&self.database_params)
}
}