1919use beefy_primitives:: ecdsa_crypto:: AuthorityId as BeefyId ;
2020use grandpa:: AuthorityId as GrandpaId ;
2121use pallet_im_online:: sr25519:: AuthorityId as ImOnlineId ;
22- #[ cfg( any(
23- feature = "westend-native" ,
24- ) ) ]
22+ #[ cfg( feature = "westend-native" ) ]
2523use pallet_staking:: Forcing ;
2624use polkadot_primitives:: { AccountId , AccountPublic , AssignmentId , ValidatorId } ;
2725use sp_authority_discovery:: AuthorityId as AuthorityDiscoveryId ;
@@ -32,22 +30,14 @@ use rococo_runtime as rococo;
3230#[ cfg( feature = "rococo-native" ) ]
3331use rococo_runtime_constants:: currency:: UNITS as ROC ;
3432use sc_chain_spec:: ChainSpecExtension ;
35- #[ cfg( any(
36- feature = "westend-native" ,
37- feature = "rococo-native"
38- ) ) ]
33+ #[ cfg( any( feature = "westend-native" , feature = "rococo-native" ) ) ]
3934use sc_chain_spec:: ChainType ;
4035use serde:: { Deserialize , Serialize } ;
4136use sp_core:: { sr25519, Pair , Public } ;
4237use sp_runtime:: traits:: IdentifyAccount ;
43- #[ cfg( any(
44- feature = "westend-native" ,
45- ) ) ]
38+ #[ cfg( feature = "westend-native" ) ]
4639use sp_runtime:: Perbill ;
47- #[ cfg( any(
48- feature = "westend-native" ,
49- feature = "rococo-native"
50- ) ) ]
40+ #[ cfg( any( feature = "westend-native" , feature = "rococo-native" ) ) ]
5141use telemetry:: TelemetryEndpoints ;
5242#[ cfg( feature = "westend-native" ) ]
5343use westend_runtime as westend;
@@ -60,10 +50,7 @@ const WESTEND_STAGING_TELEMETRY_URL: &str = "wss://telemetry.polkadot.io/submit/
6050const ROCOCO_STAGING_TELEMETRY_URL : & str = "wss://telemetry.polkadot.io/submit/" ;
6151#[ cfg( feature = "rococo-native" ) ]
6252const VERSI_STAGING_TELEMETRY_URL : & str = "wss://telemetry.polkadot.io/submit/" ;
63- #[ cfg( any(
64- feature = "westend-native" ,
65- feature = "rococo-native"
66- ) ) ]
53+ #[ cfg( any( feature = "westend-native" , feature = "rococo-native" ) ) ]
6754const DEFAULT_PROTOCOL_ID : & str = "dot" ;
6855
6956/// Node `ChainSpec` extensions.
@@ -155,10 +142,7 @@ pub fn wococo_config() -> Result<RococoChainSpec, String> {
155142}
156143
157144/// The default parachains host configuration.
158- #[ cfg( any(
159- feature = "rococo-native" ,
160- feature = "westend-native" ,
161- ) ) ]
145+ #[ cfg( any( feature = "rococo-native" , feature = "westend-native" , ) ) ]
162146fn default_parachains_host_configuration (
163147) -> polkadot_runtime_parachains:: configuration:: HostConfiguration < polkadot_primitives:: BlockNumber >
164148{
@@ -197,10 +181,7 @@ fn default_parachains_host_configuration(
197181 }
198182}
199183
200- #[ cfg( any(
201- feature = "rococo-native" ,
202- feature = "westend-native" ,
203- ) ) ]
184+ #[ cfg( any( feature = "rococo-native" , feature = "westend-native" , ) ) ]
204185#[ test]
205186fn default_parachains_host_configuration_is_consistent ( ) {
206187 default_parachains_host_configuration ( ) . panic_if_not_consistent ( ) ;
@@ -927,10 +908,7 @@ pub fn get_authority_keys_from_seed_no_beefy(
927908 )
928909}
929910
930- #[ cfg( any(
931- feature = "westend-native" ,
932- feature = "rococo-native"
933- ) ) ]
911+ #[ cfg( any( feature = "westend-native" , feature = "rococo-native" ) ) ]
934912fn testnet_accounts ( ) -> Vec < AccountId > {
935913 vec ! [
936914 get_account_id_from_seed:: <sr25519:: Public >( "Alice" ) ,
0 commit comments