From 58d4bf9ec5e785d9a6a11e8dcf75e9221277d912 Mon Sep 17 00:00:00 2001 From: thedevbirb Date: Fri, 4 Oct 2024 11:52:47 +0200 Subject: [PATCH] fix(devnet): raise gas price to match new min priority fee of 1 gwei --- bolt-client/src/utils.rs | 4 ++-- bolt-kurtosis-client/src/constants.rs | 2 +- bolt-sidecar/src/config/mod.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bolt-client/src/utils.rs b/bolt-client/src/utils.rs index 6863b851f..be55f618a 100644 --- a/bolt-client/src/utils.rs +++ b/bolt-client/src/utils.rs @@ -12,7 +12,7 @@ use beacon_api_client::{mainnet::Client as BeaconApiClient, BlockId, ProposerDut use rand::{thread_rng, Rng}; use serde_json::Value; -pub const NOICE_GAS_PRICE: u128 = 69_420_000u128; +pub const DEFAULT_GAS_PRICE: u128 = 2_000_000_000u128; // 2 gwei pub const DEAD_ADDRESS: &str = "0xdeaDDeADDEaDdeaDdEAddEADDEAdDeadDEADDEaD"; /// Generates random ETH transfer to `DEAD_ADDRESS` with a random payload. @@ -21,7 +21,7 @@ pub fn generate_random_tx() -> TransactionRequest { .with_to(Address::from_str(DEAD_ADDRESS).unwrap()) .with_value(U256::from(thread_rng().gen_range(1..100))) .with_gas_limit(1000000u128) - .with_gas_price(NOICE_GAS_PRICE) + .with_gas_price(DEFAULT_GAS_PRICE) } /// Generate random transaction with blob (eip4844) diff --git a/bolt-kurtosis-client/src/constants.rs b/bolt-kurtosis-client/src/constants.rs index a741f8ef7..4491cdaed 100644 --- a/bolt-kurtosis-client/src/constants.rs +++ b/bolt-kurtosis-client/src/constants.rs @@ -1,4 +1,4 @@ pub const SLOTS_PER_EPOCH: u64 = 32; -pub const NOICE_GAS_PRICE: u128 = 69_420_000u128; +pub const NOICE_GAS_PRICE: u128 = 6_942_000_000u128; // 6.9420 gwei pub const DEAD_ADDRESS: &str = "0xdeaDDeADDEaDdeaDdEAddEADDEAdDeadDEADDEaD"; pub const KURTOSIS_CHAIN_ID: u64 = 3151908; diff --git a/bolt-sidecar/src/config/mod.rs b/bolt-sidecar/src/config/mod.rs index 3e953a544..1b1f6686e 100644 --- a/bolt-sidecar/src/config/mod.rs +++ b/bolt-sidecar/src/config/mod.rs @@ -31,7 +31,7 @@ pub const DEFAULT_CONSTRAINTS_PROXY_PORT: u16 = 18551; // Default limit values pub const DEFAULT_MAX_COMMITMENTS: usize = 128; pub const DEFAULT_MAX_COMMITTED_GAS: u64 = 10_000_000; -pub const DEFAULT_MIN_PRIORITY_FEE: u128 = 1000000000; // 1 Gwei +pub const DEFAULT_MIN_PRIORITY_FEE: u128 = 1_000_000_000; // 1 Gwei /// Command-line options for the Bolt sidecar #[derive(Parser, Debug)]