File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
aggregation_mode/src/backend Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,9 @@ use ethrex_rpc::{
1010 EthClient ,
1111} ;
1212
13- pub const MAXIMUM_ALLOWED_MAX_FEE_PER_GAS : u64 = 10000000000 ;
14- pub const MAXIMUM_ALLOWED_MAX_FEE_PER_BLOB_GAS : u64 = 10000000000 ;
15- pub const ARBITRARY_BASE_BLOB_GAS_PRICE : u64 = 1000000000 ;
13+ // values suggested from ethrex codebase
14+ pub const MAXIMUM_ALLOWED_MAX_FEE_PER_BLOB_GAS : u64 = 10000000000 ; // 10 Gwei
15+ pub const ARBITRARY_BASE_BLOB_GAS_PRICE : u64 = 1000000000 ; // 1 Gwei
1616
1717#[ derive( Clone , Debug ) ]
1818pub enum BlobEstimationError {
Original file line number Diff line number Diff line change @@ -8,9 +8,7 @@ mod types;
88
99use crate :: {
1010 aggregators:: { AlignedProof , ProofAggregationError , ZKVMEngine } ,
11- backend:: eth:: {
12- estimate_blob_gas, MAXIMUM_ALLOWED_MAX_FEE_PER_BLOB_GAS , MAXIMUM_ALLOWED_MAX_FEE_PER_GAS ,
13- } ,
11+ backend:: eth:: { estimate_blob_gas, MAXIMUM_ALLOWED_MAX_FEE_PER_BLOB_GAS } ,
1412} ;
1513
1614use alloy:: {
@@ -93,7 +91,7 @@ impl ProofAggregator {
9391 BACKOFF_FACTOR ,
9492 MIN_RETRY_DELAY ,
9593 MAX_RETRY_DELAY ,
96- Some ( MAXIMUM_ALLOWED_MAX_FEE_PER_GAS ) ,
94+ None ,
9795 Some ( MAXIMUM_ALLOWED_MAX_FEE_PER_BLOB_GAS ) ,
9896 )
9997 . expect ( "rpc url to be valid" ) ;
You can’t perform that action at this time.
0 commit comments