From 1b04d1a99e2f53b24b2e94311a22ac3b80c7e629 Mon Sep 17 00:00:00 2001 From: Antonio Antonino Date: Thu, 10 Apr 2025 09:25:33 +0200 Subject: [PATCH] Hardcode startup flags --- sz-poc-offsite-2025/evm/aggregator/src/lib.rs | 2 +- sz-poc-offsite-2025/evm/sequencer-node/src/main.rs | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/sz-poc-offsite-2025/evm/aggregator/src/lib.rs b/sz-poc-offsite-2025/evm/aggregator/src/lib.rs index 41a5d8f..590be5b 100644 --- a/sz-poc-offsite-2025/evm/aggregator/src/lib.rs +++ b/sz-poc-offsite-2025/evm/aggregator/src/lib.rs @@ -1,5 +1,5 @@ // 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. +// 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 { unprocessed_blocks: Vec, 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 7c6ae7f..722edf4 100644 --- a/sz-poc-offsite-2025/evm/sequencer-node/src/main.rs +++ b/sz-poc-offsite-2025/evm/sequencer-node/src/main.rs @@ -41,7 +41,16 @@ async fn aggregate_block_txs( } fn main() -> eyre::Result<()> { - Cli::parse_args().run(|builder, _| { + Cli::try_parse_args_from([ + "reth", + "node", + "--datadir=/tmp/reth-dev/", + "--dev", + "--dev.block-time=2s", + "--http.addr=0.0.0.0", + ]) + .unwrap() + .run(|builder, _| { Box::pin(async move { let aggregator = Aggregator::default(); let handle = Box::pin(