File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -758,7 +758,7 @@ fn run_manual_seal_authorship(
758758 TIMESTAMP . with ( |x| {
759759 let mut x_ref = x. borrow_mut ( ) ;
760760 * x_ref = x_ref. saturating_add ( subtensor_runtime_common:: time:: SLOT_DURATION ) ;
761- inherent_data. put_data ( sp_timestamp:: INHERENT_IDENTIFIER , & * x . borrow ( ) )
761+ inherent_data. put_data ( sp_timestamp:: INHERENT_IDENTIFIER , & * x_ref )
762762 } )
763763 }
764764
@@ -775,6 +775,9 @@ fn run_manual_seal_authorship(
775775 let create_inherent_data_providers =
776776 move |_, ( ) | async move { Ok ( MockTimestampInherentDataProvider ) } ;
777777
778+ let aura_data_provider =
779+ sc_consensus_manual_seal:: consensus:: aura:: AuraConsensusDataProvider :: new ( client. clone ( ) ) ;
780+
778781 let manual_seal = match sealing {
779782 Sealing :: Manual => future:: Either :: Left ( sc_consensus_manual_seal:: run_manual_seal (
780783 sc_consensus_manual_seal:: ManualSealParams {
@@ -784,7 +787,7 @@ fn run_manual_seal_authorship(
784787 pool : transaction_pool,
785788 commands_stream,
786789 select_chain,
787- consensus_data_provider : None ,
790+ consensus_data_provider : Some ( Box :: new ( aura_data_provider ) ) ,
788791 create_inherent_data_providers,
789792 } ,
790793 ) ) ,
You can’t perform that action at this time.
0 commit comments