Merge pull request #64 from logos-co/aa/hardcode-start-options

Hardcode start options
This commit is contained in:
Antonio 2025-04-10 09:26:23 +02:00 committed by GitHub
commit 92e85310bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 2 deletions

View File

@ -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<Block> {
unprocessed_blocks: Vec<Block>,

View File

@ -41,7 +41,16 @@ async fn aggregate_block_txs<Node: FullNodeComponents>(
}
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(