mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 08:51:09 +00:00
polkadot: remove grandpa pause support (#2511)
This was never used and we probably don't need it anyway.
This commit is contained in:
@@ -82,16 +82,6 @@ pub struct RunCmd {
|
||||
#[arg(long = "force-rococo")]
|
||||
pub force_rococo: bool,
|
||||
|
||||
/// Setup a GRANDPA scheduled voting pause.
|
||||
///
|
||||
/// This parameter takes two values, namely a block number and a delay (in blocks).
|
||||
///
|
||||
/// After the given block number is finalized the GRANDPA voter will temporarily
|
||||
/// stop voting for new blocks until the given delay has elapsed (i.e. until a
|
||||
/// block at height `pause_block + delay` is imported).
|
||||
#[arg(long = "grandpa-pause", num_args = 2)]
|
||||
pub grandpa_pause: Vec<u32>,
|
||||
|
||||
/// Disable the BEEFY gadget.
|
||||
///
|
||||
/// Currently enabled by default on 'Rococo', 'Wococo' and 'Versi'.
|
||||
|
||||
@@ -215,12 +215,6 @@ where
|
||||
|
||||
set_default_ss58_version(chain_spec);
|
||||
|
||||
let grandpa_pause = if cli.run.grandpa_pause.is_empty() {
|
||||
None
|
||||
} else {
|
||||
Some((cli.run.grandpa_pause[0], cli.run.grandpa_pause[1]))
|
||||
};
|
||||
|
||||
if chain_spec.is_kusama() {
|
||||
info!("----------------------------");
|
||||
info!("This chain is not in any way");
|
||||
@@ -257,7 +251,6 @@ where
|
||||
config,
|
||||
service::NewFullParams {
|
||||
is_parachain_node: service::IsParachainNode::No,
|
||||
grandpa_pause,
|
||||
enable_beefy,
|
||||
force_authoring_backoff: cli.run.force_authoring_backoff,
|
||||
jaeger_agent,
|
||||
|
||||
Reference in New Issue
Block a user