mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
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:
@ -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| {
|
||||
|
||||
Reference in New Issue
Block a user