diff --git a/sz-poc-offsite-2025/evm/aggregator/src/lib.rs b/sz-poc-offsite-2025/evm/aggregator/src/lib.rs index 590be5b..27bc9f4 100644 --- a/sz-poc-offsite-2025/evm/aggregator/src/lib.rs +++ b/sz-poc-offsite-2025/evm/aggregator/src/lib.rs @@ -1,14 +1,13 @@ +use reth_ethereum::Block; + // TODO: The logic to batch multiple of these blocks (or the transactions within them) and send them to DA and generate proofs is still missing. It will have to be added at the offsite. // This type does not support any recovery mechanism, so if the node is stopped, the state DB should be cleaned before starting again. The folder is specified by the `--datadir` option in the binary. #[derive(Default)] -pub struct Aggregator { +pub struct Aggregator { unprocessed_blocks: Vec, } -impl Aggregator -where - Block: reth_ethereum::primitives::Block, -{ +impl Aggregator { pub fn process_blocks(&mut self, new_blocks: impl Iterator) { self.unprocessed_blocks.extend(new_blocks); } diff --git a/sz-poc-offsite-2025/evm/sequencer-node/src/main.rs b/sz-poc-offsite-2025/evm/sequencer-node/src/main.rs index 722edf4..cd4f76f 100644 --- a/sz-poc-offsite-2025/evm/sequencer-node/src/main.rs +++ b/sz-poc-offsite-2025/evm/sequencer-node/src/main.rs @@ -10,13 +10,14 @@ use reth_ethereum::{ }; use reth_tracing::tracing::info; -pub type Block = - <<::Types as NodeTypes>::Primitives as NodePrimitives>::Block; - async fn aggregate_block_txs( mut ctx: ExExContext, - mut aggregator: Aggregator>, -) -> eyre::Result<()> { + mut aggregator: Aggregator, +) -> eyre::Result<()> +where + <::Types as NodeTypes>::Primitives: + NodePrimitives, +{ while let Some(notification) = ctx.notifications.try_next().await? { let ExExNotification::ChainCommitted { new } = ¬ification else { continue;