mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 17:28:00 +00:00
unsafe_pruning flag removed (#12385)
This commit is contained in:
committed by
GitHub
parent
af579524ac
commit
5e00d361cc
@@ -659,17 +659,6 @@ pub trait CliConfiguration<DCV: DefaultConfigurationValues = ()>: Sized {
|
||||
}
|
||||
}
|
||||
|
||||
if self.import_params().map_or(false, |p| {
|
||||
#[allow(deprecated)]
|
||||
p.unsafe_pruning
|
||||
}) {
|
||||
// according to https://github.com/substrate/issues/8103;
|
||||
warn!(
|
||||
"WARNING: \"--unsafe-pruning\" CLI-flag is deprecated and has no effect. \
|
||||
In future builds it will be removed, and providing this flag will lead to an error."
|
||||
);
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
@@ -41,18 +41,6 @@ pub struct ImportParams {
|
||||
#[clap(flatten)]
|
||||
pub database_params: DatabaseParams,
|
||||
|
||||
/// THIS IS A DEPRECATED CLI-ARGUMENT.
|
||||
///
|
||||
/// It has been preserved in order to not break the compatibility with the existing scripts.
|
||||
/// Enabling this option will lead to a runtime warning.
|
||||
/// In future this option will be removed completely, thus specifying it will lead to a start
|
||||
/// up error.
|
||||
///
|
||||
/// Details: <https://github.com/paritytech/substrate/issues/8103>
|
||||
#[clap(long)]
|
||||
#[deprecated = "According to https://github.com/paritytech/substrate/issues/8103"]
|
||||
pub unsafe_pruning: bool,
|
||||
|
||||
/// Method for executing Wasm runtime code.
|
||||
#[clap(
|
||||
long = "wasm-execution",
|
||||
|
||||
Reference in New Issue
Block a user