@@ -99,6 +99,8 @@ pub struct NodeConfig {
99
99
pub gas_price : Option < u128 > ,
100
100
/// Default base fee
101
101
pub base_fee : Option < u64 > ,
102
+ /// If set to `true`, disables the enforcement of a minimum suggested priority fee
103
+ pub disable_min_priority_fee : bool ,
102
104
/// Default blob excess gas and price
103
105
pub blob_excess_gas_and_price : Option < BlobExcessGasAndPrice > ,
104
106
/// The hardfork to use
@@ -432,6 +434,7 @@ impl Default for NodeConfig {
432
434
fork_choice : None ,
433
435
account_generator : None ,
434
436
base_fee : None ,
437
+ disable_min_priority_fee : false ,
435
438
blob_excess_gas_and_price : None ,
436
439
enable_tracing : true ,
437
440
enable_steps_tracing : false ,
@@ -623,6 +626,13 @@ impl NodeConfig {
623
626
self
624
627
}
625
628
629
+ /// Disable the enforcement of a minimum suggested priority fee
630
+ #[ must_use]
631
+ pub fn disable_min_priority_fee ( mut self , disable_min_priority_fee : bool ) -> Self {
632
+ self . disable_min_priority_fee = disable_min_priority_fee;
633
+ self
634
+ }
635
+
626
636
/// Sets the init genesis (genesis.json)
627
637
#[ must_use]
628
638
pub fn with_genesis ( mut self , genesis : Option < Genesis > ) -> Self {
@@ -994,6 +1004,7 @@ impl NodeConfig {
994
1004
let fees = FeeManager :: new (
995
1005
cfg. handler_cfg . spec_id ,
996
1006
self . get_base_fee ( ) ,
1007
+ !self . disable_min_priority_fee ,
997
1008
self . get_gas_price ( ) ,
998
1009
self . get_blob_excess_gas_and_price ( ) ,
999
1010
) ;
0 commit comments