@@ -117,7 +117,7 @@ pub type LightClient<RuntimeApi, Executor> =
117117 service:: TLightClientWithBackend < Block , RuntimeApi , Executor , LightBackend > ;
118118
119119#[ cfg( feature = "full-node" ) ]
120- pub fn new_partial < RuntimeApi , Executor > ( config : & mut Configuration , test : bool ) -> Result <
120+ pub fn new_partial < RuntimeApi , Executor > ( config : & mut Configuration , test_mode : bool ) -> Result <
121121 service:: PartialComponents <
122122 FullClient < RuntimeApi , Executor > , FullBackend , FullSelectChain ,
123123 consensus_common:: DefaultImportQueue < Block , FullClient < RuntimeApi , Executor > > ,
@@ -142,7 +142,7 @@ pub fn new_partial<RuntimeApi, Executor>(config: &mut Configuration, test: bool)
142142 RuntimeApiCollection < StateBackend = sc_client_api:: StateBackendFor < FullBackend , Block > > ,
143143 Executor : NativeExecutionDispatch + ' static ,
144144{
145- if !test {
145+ if !test_mode {
146146 // If we're using prometheus, use a registry with a prefix of `polkadot`.
147147 if let Some ( PrometheusConfig { registry, .. } ) = config. prometheus_config . as_mut ( ) {
148148 * registry = Registry :: new_custom ( Some ( "polkadot" . into ( ) ) , None ) ?;
@@ -164,7 +164,7 @@ pub fn new_partial<RuntimeApi, Executor>(config: &mut Configuration, test: bool)
164164 client. clone ( ) ,
165165 ) ;
166166
167- let grandpa_hard_forks = if config. chain_spec . is_kusama ( ) && !test {
167+ let grandpa_hard_forks = if config. chain_spec . is_kusama ( ) && !test_mode {
168168 crate :: grandpa_support:: kusama_hard_forks ( )
169169 } else {
170170 Vec :: new ( )
@@ -253,7 +253,7 @@ pub fn new_full<RuntimeApi, Executor>(
253253 authority_discovery_enabled : bool ,
254254 slot_duration : u64 ,
255255 grandpa_pause : Option < ( u32 , u32 ) > ,
256- test : bool ,
256+ test_mode : bool ,
257257) -> Result < (
258258 TaskManager ,
259259 Arc < FullClient < RuntimeApi , Executor > > ,
@@ -286,7 +286,7 @@ pub fn new_full<RuntimeApi, Executor>(
286286 client, backend, mut task_manager, keystore, select_chain, import_queue, transaction_pool,
287287 inherent_data_providers,
288288 other : ( rpc_extensions_builder, import_setup, rpc_setup)
289- } = new_partial :: < RuntimeApi , Executor > ( & mut config, test ) ?;
289+ } = new_partial :: < RuntimeApi , Executor > ( & mut config, test_mode ) ?;
290290
291291 let prometheus_registry = config. prometheus_registry ( ) . cloned ( ) ;
292292
@@ -400,6 +400,7 @@ pub fn new_full<RuntimeApi, Executor>(
400400 select_chain : select_chain. clone ( ) ,
401401 keystore : keystore. clone ( ) ,
402402 max_block_data_size,
403+ test_mode,
403404 } . build ( ) ;
404405
405406 task_manager. spawn_essential_handle ( ) . spawn ( "validation-service" , Box :: pin ( validation_service) ) ;
0 commit comments