@@ -177,7 +177,7 @@ where
177177 Ok ( ( worker, telemetry) )
178178 } )
179179 . transpose ( ) ?;
180- let executor = sc_service:: new_wasm_executor :: < HostFunctions > ( config) ;
180+ let executor = sc_service:: new_wasm_executor :: < HostFunctions > ( & config. executor ) ;
181181 let ( client, backend, keystore_container, task_manager) =
182182 sc_service:: new_full_parts_record_import :: < Block , RuntimeApi , _ > (
183183 config,
@@ -297,7 +297,10 @@ where
297297 . then_some ( database_path. as_ref ( ) . map ( |p| {
298298 let _ = std:: fs:: create_dir_all ( p) ;
299299
300- sc_sysinfo:: gather_hwbench ( Some ( p) )
300+ sc_sysinfo:: gather_hwbench (
301+ Some ( p) ,
302+ & frame_benchmarking_cli:: SUBSTRATE_REFERENCE_HARDWARE ,
303+ )
301304 } ) )
302305 . flatten ( ) ;
303306 let ( relay_chain_interface, collator_key) =
@@ -315,8 +318,10 @@ where
315318 let collator = parachain_config. role . is_authority ( ) ;
316319 let prometheus_registry = parachain_config. prometheus_registry ( ) . cloned ( ) ;
317320 let import_queue_service = import_queue. service ( ) ;
318- let net_config =
319- <sc_network:: config:: FullNetworkConfiguration < _ , _ , Net > >:: new ( & parachain_config. network ) ;
321+ let net_config = <sc_network:: config:: FullNetworkConfiguration < _ , _ , Net > >:: new (
322+ & parachain_config. network ,
323+ prometheus_registry. clone ( ) ,
324+ ) ;
320325 let ( network, system_rpc_tx, tx_handler_controller, start_network, sync_service) =
321326 cumulus_client_service:: build_network ( cumulus_client_service:: BuildNetworkParams {
322327 parachain_config : & parachain_config,
@@ -366,7 +371,7 @@ where
366371 > = Default :: default ( ) ;
367372 let pubsub_notification_sinks = Arc :: new ( pubsub_notification_sinks) ;
368373 // for ethereum-compatibility rpc.
369- parachain_config. rpc_id_provider = Some ( Box :: new ( fc_rpc:: EthereumSubIdProvider ) ) ;
374+ parachain_config. rpc . id_provider = Some ( Box :: new ( fc_rpc:: EthereumSubIdProvider ) ) ;
370375 let tracing_requesters = frontier:: spawn_tasks (
371376 & task_manager,
372377 client. clone ( ) ,
@@ -424,12 +429,11 @@ where
424429 Ok ( ( timestamp, parachain_inherent_data) )
425430 } ;
426431
427- Box :: new ( move |deny_unsafe , subscription_task_executor| {
432+ Box :: new ( move |subscription_task_executor| {
428433 let deps = crate :: rpc:: FullDeps {
429434 client : client. clone ( ) ,
430435 pool : pool. clone ( ) ,
431436 graph : pool. pool ( ) . clone ( ) ,
432- deny_unsafe,
433437 is_authority : collator,
434438 network : network. clone ( ) ,
435439 sync : sync_service. clone ( ) ,
@@ -494,7 +498,7 @@ where
494498 // in there and swapping out the requirements for your own are probably a good idea. The
495499 // requirements for a para-chain are dictated by its relay-chain.
496500 if let Err ( e) =
497- frame_benchmarking_cli:: SUBSTRATE_REFERENCE_HARDWARE . check_hardware ( & hwbench)
501+ frame_benchmarking_cli:: SUBSTRATE_REFERENCE_HARDWARE . check_hardware ( & hwbench, false )
498502 {
499503 log:: warn!(
500504 "⚠️ The hardware does not meet the minimal requirements {e} for role 'Authority'." ,
@@ -673,7 +677,7 @@ where
673677 proposer,
674678 collator_service,
675679 // Very limited proposal time.
676- authoring_duration : Duration :: from_millis ( 1_500 ) ,
680+ authoring_duration : Duration :: from_millis ( 2_000 ) ,
677681 reinitialize : false ,
678682 } ;
679683 let fut = cumulus_client_consensus_aura:: collators:: lookahead:: run :: <
@@ -734,8 +738,11 @@ where
734738 _telemetry_worker_handle,
735739 ) ,
736740 } = new_partial :: < RuntimeApi > ( & config, eth_rpc_config) ?;
737- let net_config =
738- <sc_network:: config:: FullNetworkConfiguration < _ , _ , Net > >:: new ( & config. network ) ;
741+ let prometheus_registry = config. prometheus_registry ( ) . cloned ( ) ;
742+ let net_config = <sc_network:: config:: FullNetworkConfiguration < _ , _ , Net > >:: new (
743+ & config. network ,
744+ prometheus_registry. clone ( ) ,
745+ ) ;
739746 let metrics = Net :: register_notification_metrics ( None ) ;
740747 let ( network, system_rpc_tx, tx_handler_controller, start_network, sync_service) =
741748 sc_service:: build_network ( sc_service:: BuildNetworkParams {
@@ -746,7 +753,7 @@ where
746753 spawn_handle : task_manager. spawn_handle ( ) ,
747754 import_queue,
748755 block_announce_validator_builder : None ,
749- warp_sync_params : None ,
756+ warp_sync_config : None ,
750757 block_relay : None ,
751758 metrics,
752759 } ) ?;
@@ -880,7 +887,6 @@ where
880887 log:: warn!( "You could add --alice or --bob to make dev chain seal instantly." ) ;
881888 }
882889
883- let prometheus_registry = config. prometheus_registry ( ) . cloned ( ) ;
884890 let block_data_cache = Arc :: new ( fc_rpc:: EthBlockDataCacheTask :: new (
885891 task_manager. spawn_handle ( ) ,
886892 storage_override. clone ( ) ,
@@ -893,7 +899,7 @@ where
893899 > = Default :: default ( ) ;
894900 let pubsub_notification_sinks = Arc :: new ( pubsub_notification_sinks) ;
895901 // for ethereum-compatibility rpc.
896- config. rpc_id_provider = Some ( Box :: new ( fc_rpc:: EthereumSubIdProvider ) ) ;
902+ config. rpc . id_provider = Some ( Box :: new ( fc_rpc:: EthereumSubIdProvider ) ) ;
897903 let tracing_requesters = frontier:: spawn_tasks (
898904 & task_manager,
899905 client. clone ( ) ,
@@ -952,12 +958,11 @@ where
952958 Ok ( ( timestamp, parachain_inherent_data) )
953959 } ;
954960
955- Box :: new ( move |deny_unsafe , subscription_task_executor| {
961+ Box :: new ( move |subscription_task_executor| {
956962 let deps = crate :: rpc:: FullDeps {
957963 client : client. clone ( ) ,
958964 pool : pool. clone ( ) ,
959965 graph : pool. pool ( ) . clone ( ) ,
960- deny_unsafe,
961966 is_authority : collator,
962967 network : network. clone ( ) ,
963968 sync : sync_service. clone ( ) ,
0 commit comments