@@ -19,7 +19,6 @@ use sp_api::ProvideRuntimeApi;
19
19
use sp_block_builder:: BlockBuilder as BlockBuilderApi ;
20
20
use sp_consensus:: Error as ConsensusError ;
21
21
use sp_consensus_aura:: sr25519:: AuthorityPair as AuraPair ;
22
- use sp_core:: U256 ;
23
22
use sp_runtime:: traits:: { Block as BlockT , Header , NumberFor } ;
24
23
use std:: { cell:: RefCell , path:: Path } ;
25
24
use std:: { marker:: PhantomData , sync:: Arc , time:: Duration } ;
@@ -279,7 +278,7 @@ where
279
278
pub fn build_aura_grandpa_import_queue (
280
279
client : Arc < FullClient > ,
281
280
config : & Configuration ,
282
- eth_config : & EthConfiguration ,
281
+ _eth_config : & EthConfiguration ,
283
282
task_manager : & TaskManager ,
284
283
telemetry : Option < TelemetryHandle > ,
285
284
grandpa_block_import : GrandpaBlockImport ,
@@ -294,16 +293,14 @@ where
294
293
) ;
295
294
296
295
let slot_duration = sc_consensus_aura:: slot_duration ( & * client) ?;
297
- let target_gas_price = eth_config. target_gas_price ;
298
296
let create_inherent_data_providers = move |_, ( ) | async move {
299
297
let timestamp = sp_timestamp:: InherentDataProvider :: from_system_time ( ) ;
300
298
let slot =
301
299
sp_consensus_aura:: inherents:: InherentDataProvider :: from_timestamp_and_slot_duration (
302
300
* timestamp,
303
301
slot_duration,
304
302
) ;
305
- let dynamic_fee = fp_dynamic_fee:: InherentDataProvider ( U256 :: from ( target_gas_price) ) ;
306
- Ok ( ( slot, timestamp, dynamic_fee) )
303
+ Ok ( ( slot, timestamp) )
307
304
} ;
308
305
309
306
let import_queue = sc_consensus_aura:: import_queue :: < AuraPair , _ , _ , _ , _ , _ > (
@@ -521,7 +518,6 @@ where
521
518
) ) ;
522
519
523
520
let slot_duration = sc_consensus_aura:: slot_duration ( & * client) ?;
524
- let target_gas_price = eth_config. target_gas_price ;
525
521
let pending_create_inherent_data_providers = move |_, ( ) | async move {
526
522
let current = sp_timestamp:: InherentDataProvider :: from_system_time ( ) ;
527
523
let next_slot = current
@@ -533,8 +529,7 @@ where
533
529
* timestamp,
534
530
slot_duration,
535
531
) ;
536
- let dynamic_fee = fp_dynamic_fee:: InherentDataProvider ( U256 :: from ( target_gas_price) ) ;
537
- Ok ( ( slot, timestamp, dynamic_fee) )
532
+ Ok ( ( slot, timestamp) )
538
533
} ;
539
534
540
535
Box :: new ( move |subscription_task_executor| {
@@ -613,7 +608,6 @@ where
613
608
// manual-seal authorship
614
609
if let Some ( sealing) = sealing {
615
610
run_manual_seal_authorship (
616
- & eth_config,
617
611
sealing,
618
612
client,
619
613
transaction_pool,
@@ -639,15 +633,13 @@ where
639
633
) ;
640
634
641
635
let slot_duration = sc_consensus_aura:: slot_duration ( & * client) ?;
642
- let target_gas_price = eth_config. target_gas_price ;
643
636
let create_inherent_data_providers = move |_, ( ) | async move {
644
637
let timestamp = sp_timestamp:: InherentDataProvider :: from_system_time ( ) ;
645
638
let slot = sp_consensus_aura:: inherents:: InherentDataProvider :: from_timestamp_and_slot_duration (
646
639
* timestamp,
647
640
slot_duration,
648
641
) ;
649
- let dynamic_fee = fp_dynamic_fee:: InherentDataProvider ( U256 :: from ( target_gas_price) ) ;
650
- Ok ( ( slot, timestamp, dynamic_fee) )
642
+ Ok ( ( slot, timestamp) )
651
643
} ;
652
644
653
645
let aura = sc_consensus_aura:: start_aura :: < AuraPair , _ , _ , _ , _ , _ , _ , _ , _ , _ , _ > (
@@ -770,7 +762,6 @@ pub fn new_chain_ops(
770
762
771
763
#[ allow( clippy:: too_many_arguments) ]
772
764
fn run_manual_seal_authorship (
773
- eth_config : & EthConfiguration ,
774
765
sealing : Sealing ,
775
766
client : Arc < FullClient > ,
776
767
transaction_pool : Arc < FullPool < Block , FullClient > > ,
@@ -820,12 +811,8 @@ fn run_manual_seal_authorship(
820
811
}
821
812
}
822
813
823
- let target_gas_price = eth_config. target_gas_price ;
824
- let create_inherent_data_providers = move |_, ( ) | async move {
825
- let timestamp = MockTimestampInherentDataProvider ;
826
- let dynamic_fee = fp_dynamic_fee:: InherentDataProvider ( U256 :: from ( target_gas_price) ) ;
827
- Ok ( ( timestamp, dynamic_fee) )
828
- } ;
814
+ let create_inherent_data_providers =
815
+ move |_, ( ) | async move { Ok ( MockTimestampInherentDataProvider ) } ;
829
816
830
817
let manual_seal = match sealing {
831
818
Sealing :: Manual => future:: Either :: Left ( sc_consensus_manual_seal:: run_manual_seal (
0 commit comments