Skip to content

Commit 9b96387

Browse files
committed
refactor: remove unnecessary constants
1 parent d7950a2 commit 9b96387

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

aggregation_mode/src/backend/eth.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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)]
1818
pub enum BlobEstimationError {

aggregation_mode/src/backend/mod.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ mod types;
88

99
use 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

1614
use 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");

0 commit comments

Comments
 (0)