Skip to content

Commit

Permalink
Merge pull request #264 from chainbound/lore/fix/min-priority-fees-cl…
Browse files Browse the repository at this point in the history
…ients

fix(devnet): raise gas price to match new min priority fee of 1 gwei
  • Loading branch information
thedevbirb authored Oct 4, 2024
2 parents 1940c34 + 58d4bf9 commit 1db6847
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bolt-client/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion bolt-kurtosis-client/src/constants.rs
Original file line number Diff line number Diff line change
@@ -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;
2 changes: 1 addition & 1 deletion bolt-sidecar/src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit 1db6847

Please sign in to comment.