diff --git a/node/service/src/lib.rs b/node/service/src/lib.rs index fa8cb8ec77f7..7dbd7436cfb1 100644 --- a/node/service/src/lib.rs +++ b/node/service/src/lib.rs @@ -827,10 +827,11 @@ pub fn new_full( net_config.add_request_response_protocol(beefy_req_resp_cfg); } + // validation/collation protocols are enabled only if `Overseer` is enabled let peerset_protocol_names = PeerSetProtocolNames::new(genesis_hash, config.chain_spec.fork_id()); - { + if auth_or_collator || overseer_enable_anyways { use polkadot_network_bridge::{peer_sets_info, IsAuthority}; let is_authority = if role.is_authority() { IsAuthority::Yes } else { IsAuthority::No }; for config in peer_sets_info(is_authority, &peerset_protocol_names) {