mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 15:47:58 +00:00
service: use deny-list instead of allow-list for BEEFY (#5331)
* use deny-list instead of allow-list for BEEFY Instead of allowing BEEFY to run on specific test nets, inverse the condition to explicitly disallow BEEFY on production chains that we don't want it to run on yet. This allows other test chains (other than Rococo/Wococo) that use the polkadot service file to enable and test BEEFY. Signed-off-by: Adrian Catangiu <adrian@parity.io> * address review comments * throw error if BEEFY enabled on production networks Signed-off-by: acatangiu <adrian@parity.io>
This commit is contained in:
@@ -273,6 +273,13 @@ where
|
||||
.map_err(Error::from)?;
|
||||
let chain_spec = &runner.config().chain_spec;
|
||||
|
||||
// Disallow BEEFY on production networks.
|
||||
if cli.run.beefy &&
|
||||
(chain_spec.is_polkadot() || chain_spec.is_kusama() || chain_spec.is_westend())
|
||||
{
|
||||
return Err(Error::Other("BEEFY disallowed on production networks".to_string()))
|
||||
}
|
||||
|
||||
set_default_ss58_version(chain_spec);
|
||||
|
||||
let grandpa_pause = if cli.run.grandpa_pause.is_empty() {
|
||||
|
||||
Reference in New Issue
Block a user