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:
@ -35,6 +35,12 @@ pub struct HlNodeArgs {
|
||||
#[command(flatten)]
|
||||
pub block_source_args: BlockSourceArgs,
|
||||
|
||||
/// Debug cutoff height.
|
||||
///
|
||||
/// This option is used to cut off the block import at a specific height.
|
||||
#[arg(long, env = "DEBUG_CUTOFF_HEIGHT")]
|
||||
pub debug_cutoff_height: Option<u64>,
|
||||
|
||||
/// Upstream RPC URL to forward incoming transactions.
|
||||
///
|
||||
/// Default to Hyperliquid's RPC URL when not provided (https://rpc.hyperliquid.xyz/evm).
|
||||
|
||||
Reference in New Issue
Block a user