From ebed5d740e775e7eb92ef5eed87e7d066a4a1706 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tuomas=20M=C3=A4kinen?= <1947505+tuommaki@users.noreply.github.com> Date: Fri, 20 Oct 2023 08:04:18 +0300 Subject: [PATCH] Enable `block-count` param for `reconstruct l1` command (#30) --- src/main.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 4c4a3b5..f146d6c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -76,7 +76,7 @@ async fn main() -> Result<()> { http_url, start_block, block_step: _, - block_count: _, + block_count, disable_polling, }, } => { @@ -90,8 +90,10 @@ async fn main() -> Result<()> { processor.run(rx).await; }); + let end_block = block_count.map(|n| U64([start_block + n])); + fetcher - .fetch(tx, Some(U64([start_block])), None, disable_polling) + .fetch(tx, Some(U64([start_block])), end_block, disable_polling) .await?; processor_handle.await?; }