Skip to content

Commit

Permalink
Merge pull request #100 from weaveVM/initialize-wvm-fee-m
Browse files Browse the repository at this point in the history
feat: Initialize wvm fee manager
  • Loading branch information
andreespirela authored Oct 25, 2024
2 parents e6819a5 + 060d542 commit 0374165
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion crates/primitives-traits/src/constants/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ pub const ETHEREUM_BLOCK_GAS_LIMIT: LazyCell<u64> = LazyCell::new(|| 500_000_000
pub static MIN_PROTOCOL_BASE_FEE: LazyLock<AtomicU64> =
LazyLock::new(|| AtomicU64::new(500_000u64));

pub(crate) static WVM_FEE_MANAGER: LazyLock<Arc<WvmFeeManager>> = LazyLock::new(|| {
pub static WVM_FEE_MANAGER: LazyLock<Arc<WvmFeeManager>> = 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 =
Expand Down
1 change: 1 addition & 0 deletions wvm-apps/wvm-exexed/crates/reth-exexed/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ async fn exex_etl_processor<Node: FullNodeComponents>(

/// 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();
Expand Down

0 comments on commit 0374165

Please sign in to comment.