mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-20 22:05:42 +00:00
companion for 14754: cli: move no-beefy flag to sc-cli (#2996)
* companion 14754: no-beefy flag moved to sc-cli Signed-off-by: Adrian Catangiu <adrian@parity.io> * bump substrate ref Signed-off-by: Adrian Catangiu <adrian@parity.io> * bump polkadot ref --------- Signed-off-by: Adrian Catangiu <adrian@parity.io>
This commit is contained in:
Generated
+264
-264
File diff suppressed because it is too large
Load Diff
@@ -393,6 +393,10 @@ impl sc_cli::CliConfiguration for NormalizedRunCmd {
|
|||||||
self.base.disable_grandpa()
|
self.base.disable_grandpa()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn disable_beefy(&self) -> sc_cli::Result<bool> {
|
||||||
|
self.base.disable_beefy()
|
||||||
|
}
|
||||||
|
|
||||||
fn rpc_max_connections(&self) -> sc_cli::Result<u32> {
|
fn rpc_max_connections(&self) -> sc_cli::Result<u32> {
|
||||||
self.base.rpc_max_connections()
|
self.base.rpc_max_connections()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -265,7 +265,7 @@ pub fn check_block_in_chain(
|
|||||||
/// Build the Polkadot full node using the given `config`.
|
/// Build the Polkadot full node using the given `config`.
|
||||||
#[sc_tracing::logging::prefix_logs_with("Relaychain")]
|
#[sc_tracing::logging::prefix_logs_with("Relaychain")]
|
||||||
fn build_polkadot_full_node(
|
fn build_polkadot_full_node(
|
||||||
config: Configuration,
|
mut config: Configuration,
|
||||||
parachain_config: &Configuration,
|
parachain_config: &Configuration,
|
||||||
telemetry_worker_handle: Option<TelemetryWorkerHandle>,
|
telemetry_worker_handle: Option<TelemetryWorkerHandle>,
|
||||||
hwbench: Option<sc_sysinfo::HwBench>,
|
hwbench: Option<sc_sysinfo::HwBench>,
|
||||||
@@ -277,13 +277,14 @@ fn build_polkadot_full_node(
|
|||||||
(polkadot_service::IsCollator::No, None)
|
(polkadot_service::IsCollator::No, None)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Disable BEEFY. It should not be required by the internal relay chain node.
|
||||||
|
config.disable_beefy = true;
|
||||||
|
|
||||||
let relay_chain_full_node = polkadot_service::build_full(
|
let relay_chain_full_node = polkadot_service::build_full(
|
||||||
config,
|
config,
|
||||||
polkadot_service::NewFullParams {
|
polkadot_service::NewFullParams {
|
||||||
is_collator,
|
is_collator,
|
||||||
grandpa_pause: None,
|
grandpa_pause: None,
|
||||||
// Disable BEEFY. It should not be required by the internal relay chain node.
|
|
||||||
enable_beefy: false,
|
|
||||||
jaeger_agent: None,
|
jaeger_agent: None,
|
||||||
telemetry_worker_handle,
|
telemetry_worker_handle,
|
||||||
|
|
||||||
|
|||||||
@@ -408,6 +408,10 @@ impl CliConfiguration<Self> for RelayChainCli {
|
|||||||
self.base.base.disable_grandpa()
|
self.base.base.disable_grandpa()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn disable_beefy(&self) -> Result<bool> {
|
||||||
|
self.base.base.disable_beefy()
|
||||||
|
}
|
||||||
|
|
||||||
fn max_runtime_instances(&self) -> Result<Option<usize>> {
|
fn max_runtime_instances(&self) -> Result<Option<usize>> {
|
||||||
self.base.base.max_runtime_instances()
|
self.base.base.max_runtime_instances()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1064,6 +1064,10 @@ impl CliConfiguration<Self> for RelayChainCli {
|
|||||||
self.base.base.disable_grandpa()
|
self.base.base.disable_grandpa()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn disable_beefy(&self) -> Result<bool> {
|
||||||
|
self.base.base.disable_beefy()
|
||||||
|
}
|
||||||
|
|
||||||
fn max_runtime_instances(&self) -> Result<Option<usize>> {
|
fn max_runtime_instances(&self) -> Result<Option<usize>> {
|
||||||
self.base.base.max_runtime_instances()
|
self.base.base.max_runtime_instances()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -220,6 +220,10 @@ impl CliConfiguration<Self> for RelayChainCli {
|
|||||||
self.base.base.disable_grandpa()
|
self.base.base.disable_grandpa()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn disable_beefy(&self) -> CliResult<bool> {
|
||||||
|
self.base.base.disable_beefy()
|
||||||
|
}
|
||||||
|
|
||||||
fn max_runtime_instances(&self) -> CliResult<Option<usize>> {
|
fn max_runtime_instances(&self) -> CliResult<Option<usize>> {
|
||||||
self.base.base.max_runtime_instances()
|
self.base.base.max_runtime_instances()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -772,6 +772,7 @@ pub fn node_config(
|
|||||||
offchain_worker: OffchainWorkerConfig { enabled: true, indexing_enabled: false },
|
offchain_worker: OffchainWorkerConfig { enabled: true, indexing_enabled: false },
|
||||||
force_authoring: false,
|
force_authoring: false,
|
||||||
disable_grandpa: false,
|
disable_grandpa: false,
|
||||||
|
disable_beefy: true,
|
||||||
dev_key_seed: Some(key_seed),
|
dev_key_seed: Some(key_seed),
|
||||||
tracing_targets: None,
|
tracing_targets: None,
|
||||||
tracing_receiver: Default::default(),
|
tracing_receiver: Default::default(),
|
||||||
|
|||||||
Reference in New Issue
Block a user