Skip to content

Commit

Permalink
Enable block-count param for reconstruct l1 command (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
tuommaki authored Oct 20, 2023
1 parent 20c70f1 commit ebed5d7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ async fn main() -> Result<()> {
http_url,
start_block,
block_step: _,
block_count: _,
block_count,
disable_polling,
},
} => {
Expand All @@ -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?;
}
Expand Down

0 comments on commit ebed5d7

Please sign in to comment.