mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-29 09:08:05 -05:00
feat(cli): allow running pipeline up to --debug.max-block (#1175)
This commit is contained in:
committed by
GitHub
parent
2ef24b3b65
commit
e46d0401a2
@@ -80,6 +80,10 @@ pub struct Command {
|
||||
|
||||
#[arg(long, default_value = "any")]
|
||||
nat: NatResolver,
|
||||
|
||||
/// Runs the sync only up to the specified block
|
||||
#[arg(long = "debug.max-block", help_heading = "Debug")]
|
||||
max_block: u64,
|
||||
}
|
||||
|
||||
impl Command {
|
||||
@@ -200,6 +204,7 @@ impl Command {
|
||||
let stage_conf = &config.stages;
|
||||
|
||||
let pipeline = Pipeline::builder()
|
||||
.with_max_block(self.max_block)
|
||||
.with_sync_state_updater(network.clone())
|
||||
.add_stages(
|
||||
OnlineStages::new(consensus.clone(), header_downloader, body_downloader).set(
|
||||
|
||||
Reference in New Issue
Block a user