feat: Add debug CLI flag to enforce latest blocks (--debug-cutoff-height)

This is useful when syncing to specific testnet blocks
This commit is contained in:
sprites0
2025-10-02 14:53:47 +00:00
parent b37ba15765
commit 875304f891
7 changed files with 51 additions and 8 deletions

View File

@ -40,7 +40,8 @@ fn main() -> eyre::Result<()> {
ext: HlNodeArgs| async move {
let default_upstream_rpc_url = builder.config().chain.official_rpc_url();
let (node, engine_handle_tx) = HlNode::new(ext.block_source_args.parse().await?);
let (node, engine_handle_tx) =
HlNode::new(ext.block_source_args.parse().await?, ext.debug_cutoff_height);
let NodeHandle { node, node_exit_future: exit_future } = builder
.node(node)
.extend_rpc_modules(move |mut ctx| {