Skip to content

Commit

Permalink
refactor(ethereum): remove L1 poll interval from L1 sync context
Browse files Browse the repository at this point in the history
  • Loading branch information
t00ts committed Sep 6, 2024
1 parent 9b19492 commit ee6712d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion crates/pathfinder/src/state/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ where
ethereum: value.ethereum.clone(),
chain: value.chain,
core_address: value.core_address,
poll_interval: value.l1_poll_interval,
}
}
}
Expand Down
5 changes: 0 additions & 5 deletions crates/pathfinder/src/state/sync/l1.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use std::time::Duration;

use pathfinder_common::Chain;
use pathfinder_ethereum::{EthereumApi, EthereumEvent};
use primitive_types::H160;
Expand All @@ -15,8 +13,6 @@ pub struct L1SyncContext<EthereumClient> {
pub chain: Chain,
/// The Starknet core contract address on Ethereum
pub core_address: H160,
/// The interval at which to poll for updates on finalized blocks
pub poll_interval: Duration,
}

/// Syncs L1 state update logs. Emits [Ethereum state
Expand All @@ -33,7 +29,6 @@ where
ethereum,
chain: _,
core_address,
poll_interval,
} = context;

// Listen for state updates and send them to the event channel
Expand Down

0 comments on commit ee6712d

Please sign in to comment.