Skip to content

Commit

Permalink
chore: added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
merklefruit committed Sep 11, 2024
1 parent 9d013ad commit 1e38a1f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions crates/rollup/src/driver/context/exex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ use tokio::sync::mpsc::error::SendError;

use crate::driver::{ChainNotification, DriverContext};

/// Execution extension Hera context.
///
/// This context is used to bridge the gap between the execution extension
/// and the Hera pipeline. It receives notifications from the execution extension
/// and forwards them to the Hera pipeline. It also maintains a shared L1 cache of
/// the chain to make it available to the rollup pipeline.
pub struct ExExHeraContext<N: FullNodeComponents> {
ctx: ExExContext<N>,
l1_cache: InMemoryChainProvider,
Expand Down
6 changes: 5 additions & 1 deletion crates/rollup/src/driver/context/standalone.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ use super::{Blocks, ChainNotification, DriverContext};
/// Equivalent to 2 epochs at 32 slots/epoch on Ethereum Mainnet.
const FINALIZATION_TIMEOUT: u64 = 64;

#[allow(unused)]
/// A standalone context that polls for new blocks from an L1 node, depending
/// on the URL scheme. Supported schemes are `http`, `ws`, and `file`.
///
/// If the URL scheme is `http`, the context will poll for new blocks using the
/// `eth_getFilterChanges` if available, falling back to `eth_getBlockByNumber` if not.
#[derive(Debug)]
pub struct StandaloneHeraContext {
/// The current tip of the L1 chain listener, used to detect reorgs
Expand Down

0 comments on commit 1e38a1f

Please sign in to comment.