Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
enable ApprovalCheckingVotingRule on Polkadot (#4072)
Browse files Browse the repository at this point in the history
* enable ApprovalCheckingVotingRule on Polkadot

* fmt
  • Loading branch information
ordian authored Oct 15, 2021
1 parent 43dccfb commit 192fbcb
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions node/service/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -723,17 +723,9 @@ where

let chain_spec = config.chain_spec.cloned_box();

// we should remove this check before we deploy parachains on polkadot
// TODO: https://github.com/paritytech/polkadot/issues/3326
let is_relay_chain = chain_spec.is_kusama() ||
chain_spec.is_westend() ||
chain_spec.is_rococo() ||
chain_spec.is_wococo();

let local_keystore = basics.keystore_container.local_keystore();
let requires_overseer_for_chain_sel = local_keystore.is_some() &&
is_relay_chain &&
(role.is_authority() || is_collator.is_collator());
let requires_overseer_for_chain_sel =
local_keystore.is_some() && (role.is_authority() || is_collator.is_collator());

let select_chain = SelectRelayChain::new(
basics.backend.clone(),
Expand Down

0 comments on commit 192fbcb

Please sign in to comment.