From 060d5421fa48ff3fabff5f4baffc74b8ad39397a Mon Sep 17 00:00:00 2001 From: andreespirela Date: Fri, 25 Oct 2024 11:00:06 -0400 Subject: [PATCH] feat: Initialize wvm fee manager --- crates/primitives-traits/src/constants/mod.rs | 2 +- wvm-apps/wvm-exexed/crates/reth-exexed/src/main.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/primitives-traits/src/constants/mod.rs b/crates/primitives-traits/src/constants/mod.rs index d9f331051b40..8d2c0c5f7208 100644 --- a/crates/primitives-traits/src/constants/mod.rs +++ b/crates/primitives-traits/src/constants/mod.rs @@ -63,7 +63,7 @@ pub const ETHEREUM_BLOCK_GAS_LIMIT: LazyCell = LazyCell::new(|| 500_000_000 pub static MIN_PROTOCOL_BASE_FEE: LazyLock = LazyLock::new(|| AtomicU64::new(500_000u64)); -pub(crate) static WVM_FEE_MANAGER: LazyLock> = LazyLock::new(|| { +pub static WVM_FEE_MANAGER: LazyLock> = LazyLock::new(|| { let fee = WvmFee::new(Some(Box::new(move |price| { let original_price = price as f64 / 1_000_000_000f64; let lowest_possible_gas_price_in_gwei = diff --git a/wvm-apps/wvm-exexed/crates/reth-exexed/src/main.rs b/wvm-apps/wvm-exexed/crates/reth-exexed/src/main.rs index 375fcd579f8f..86df4457e1d7 100644 --- a/wvm-apps/wvm-exexed/crates/reth-exexed/src/main.rs +++ b/wvm-apps/wvm-exexed/crates/reth-exexed/src/main.rs @@ -131,6 +131,7 @@ async fn exex_etl_processor( /// Main loop of the exexed WVM node fn main() -> eyre::Result<()> { + let _init_fee_manager = &*reth_primitives::constants::WVM_FEE_MANAGER; reth::cli::Cli::parse_args().run(|builder, _| async move { // Original config let mut config = builder.config().clone();