@@ -19,7 +19,6 @@ use sp_block_participation::{
1919 BlockParticipationApi ,
2020 inherent_data:: { BlockParticipationDataSource , BlockParticipationInherentDataProvider } ,
2121} ;
22- use sp_block_production_log:: { BlockAuthorInherentProvider , BlockProductionLogApi } ;
2322use sp_blockchain:: HeaderBackend ;
2423use sp_consensus_aura:: {
2524 Slot , inherents:: InherentDataProvider as AuraIDP , sr25519:: AuthorityPair as AuraPair ,
5453 T : ProvideRuntimeApi < Block > + Send + Sync + ' static ,
5554 T : HeaderBackend < Block > ,
5655 T :: Api : SessionValidatorManagementApi < Block , CrossChainPublic , SessionKeys , ScEpochNumber > ,
57- T :: Api : BlockProductionLogApi < Block , BlockAuthor , Slot > ,
5856 T :: Api : BlockParticipationApi < Block , BlockAuthor , Slot > ,
5957 T :: Api : GovernedMapIDPApi < Block > ,
6058 T :: Api : TokenBridgeIDPRuntimeApi < Block > ,
6462 TimestampIDP ,
6563 McHashIDP ,
6664 AriadneIDP ,
67- BlockAuthorInherentProvider < Slot , BlockAuthor > ,
6865 BlockParticipationInherentDataProvider < BlockAuthor , DelegatorKey , Slot > ,
6966 GovernedMapInherentDataProvider ,
7067 TokenBridgeInherentDataProvider < AccountId > ,
@@ -111,8 +108,6 @@ where
111108 mc_hash. mc_epoch ( ) ,
112109 )
113110 . await ?;
114- let block_producer_id_provider =
115- BlockAuthorInherentProvider :: new ( client. as_ref ( ) , parent_hash, * slot) ?;
116111
117112 let payouts = BlockParticipationInherentDataProvider :: new (
118113 client. as_ref ( ) ,
@@ -140,16 +135,7 @@ where
140135 )
141136 . await ?;
142137
143- Ok ( (
144- slot,
145- timestamp,
146- mc_hash,
147- ariadne_data_provider,
148- block_producer_id_provider,
149- payouts,
150- governed_map,
151- bridge,
152- ) )
138+ Ok ( ( slot, timestamp, mc_hash, ariadne_data_provider, payouts, governed_map, bridge) )
153139 }
154140}
155141
@@ -175,15 +161,13 @@ impl<T> CreateInherentDataProviders<Block, (Slot, McBlockHash)> for VerifierCIDP
175161where
176162 T : ProvideRuntimeApi < Block > + Send + Sync + HeaderBackend < Block > ,
177163 T :: Api : SessionValidatorManagementApi < Block , CrossChainPublic , SessionKeys , ScEpochNumber > ,
178- T :: Api : BlockProductionLogApi < Block , BlockAuthor , Slot > ,
179164 T :: Api : BlockParticipationApi < Block , BlockAuthor , Slot > ,
180165 T :: Api : GovernedMapIDPApi < Block > ,
181166 T :: Api : TokenBridgeIDPRuntimeApi < Block > ,
182167{
183168 type InherentDataProviders = (
184169 TimestampIDP ,
185170 AriadneIDP ,
186- BlockAuthorInherentProvider < Slot , BlockAuthor > ,
187171 BlockParticipationInherentDataProvider < BlockAuthor , DelegatorKey , Slot > ,
188172 GovernedMapInherentDataProvider ,
189173 TokenBridgeInherentDataProvider < AccountId > ,
@@ -237,9 +221,6 @@ where
237221 )
238222 . await ?;
239223
240- let block_producer_id_provider =
241- BlockAuthorInherentProvider :: new ( client. as_ref ( ) , parent_hash, verified_block_slot) ?;
242-
243224 let payouts = BlockParticipationInherentDataProvider :: new (
244225 client. as_ref ( ) ,
245226 block_participation_data_source. as_ref ( ) ,
@@ -266,14 +247,7 @@ where
266247 )
267248 . await ?;
268249
269- Ok ( (
270- timestamp,
271- ariadne_data_provider,
272- block_producer_id_provider,
273- payouts,
274- governed_map,
275- bridge,
276- ) )
250+ Ok ( ( timestamp, ariadne_data_provider, payouts, governed_map, bridge) )
277251 }
278252}
279253
0 commit comments