@@ -527,6 +527,8 @@ pub async fn new_full<Network: sc_network::NetworkBackend<Block, <Block as Block
527527 let config_data_path = config. data_path . clone ( ) ;
528528 #[ cfg( feature = "blueprint-manager" ) ]
529529 let rpc_port = config. rpc_port ;
530+ #[ cfg( feature = "blueprint-manager" ) ]
531+ let chain_type = config. chain_spec . chain_type ( ) ;
530532 let params = sc_service:: SpawnTasksParams {
531533 network : network. clone ( ) ,
532534 client : client. clone ( ) ,
@@ -625,10 +627,12 @@ pub async fn new_full<Network: sc_network::NetworkBackend<Block, <Block as Block
625627 #[ cfg( feature = "blueprint-manager" ) ]
626628 {
627629 log:: info!( "Blueprint Manager is enabled." ) ;
630+ let test_mode = chain_type == ChainType :: Development || chain_type == ChainType :: Local ;
628631 let bp_mngr = crate :: blueprint_service:: create_blueprint_manager_service (
629632 rpc_port,
630633 config_data_path. join ( "blueprints" ) ,
631634 keystore_container. local_keystore ( ) ,
635+ test_mode,
632636 ) ?;
633637
634638 task_manager
@@ -689,10 +693,12 @@ pub async fn new_full<Network: sc_network::NetworkBackend<Block, <Block as Block
689693 #[ cfg( feature = "blueprint-manager" ) ]
690694 {
691695 log:: info!( "Blueprint Manager is enabled." ) ;
696+ let test_mode = chain_type == ChainType :: Development || chain_type == ChainType :: Local ;
692697 let bp_mngr = crate :: blueprint_service:: create_blueprint_manager_service (
693698 rpc_port,
694699 config_data_path. join ( "blueprints" ) ,
695700 keystore_container. local_keystore ( ) ,
701+ test_mode,
696702 ) ?;
697703
698704 task_manager
0 commit comments