@@ -376,7 +376,7 @@ pub fn start_node(
376
376
overrides : overrides. clone ( ) ,
377
377
enable_evm_rpc : true , // enable EVM RPC for dev node by default
378
378
#[ cfg( feature = "manual-seal" ) ]
379
- command_sink : None
379
+ command_sink : None ,
380
380
} ;
381
381
382
382
crate :: rpc:: create_full (
@@ -700,26 +700,30 @@ pub fn start_node(config: Configuration) -> Result<TaskManager, ServiceError> {
700
700
let slot_duration = sc_consensus_aura:: slot_duration ( & * client) ?;
701
701
702
702
#[ cfg( feature = "manual-seal" ) ]
703
- let aura = sc_consensus_manual_seal:: run_manual_seal ( sc_consensus_manual_seal:: ManualSealParams {
704
- block_import,
705
- env : proposer_factory,
706
- client : client. clone ( ) ,
707
- pool : transaction_pool. clone ( ) ,
708
- commands_stream,
709
- select_chain,
710
- consensus_data_provider : Some ( Box :: new ( sc_consensus_manual_seal:: consensus:: aura:: AuraConsensusDataProvider :: new ( client. clone ( ) ) ) ) ,
711
- create_inherent_data_providers : move |_, ( ) | {
712
- async move {
703
+ let aura = sc_consensus_manual_seal:: run_manual_seal (
704
+ sc_consensus_manual_seal:: ManualSealParams {
705
+ block_import,
706
+ env : proposer_factory,
707
+ client : client. clone ( ) ,
708
+ pool : transaction_pool. clone ( ) ,
709
+ commands_stream,
710
+ select_chain,
711
+ consensus_data_provider : Some ( Box :: new (
712
+ sc_consensus_manual_seal:: consensus:: aura:: AuraConsensusDataProvider :: new (
713
+ client. clone ( ) ,
714
+ ) ,
715
+ ) ) ,
716
+ create_inherent_data_providers : move |_, ( ) | async move {
713
717
let timestamp = sp_timestamp:: InherentDataProvider :: from_system_time ( ) ;
714
718
let slot =
715
719
sp_consensus_aura:: inherents:: InherentDataProvider :: from_timestamp_and_slot_duration (
716
720
* timestamp,
717
721
slot_duration. clone ( ) ,
718
722
) ;
719
723
Ok ( ( slot, timestamp) )
720
- }
724
+ } ,
721
725
} ,
722
- } ) ;
726
+ ) ;
723
727
724
728
#[ cfg( not( feature = "manual-seal" ) ) ]
725
729
let aura = sc_consensus_aura:: start_aura :: < AuraPair , _ , _ , _ , _ , _ , _ , _ , _ , _ , _ > (
0 commit comments