mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix(bin): unwind CLI to-block behavior (#3077)
This commit is contained in:
@ -109,8 +109,8 @@ impl Subcommands {
|
||||
.ok_or_else(|| eyre::eyre!("Block hash not found in database: {hash:?}"))?,
|
||||
BlockHashOrNumber::Number(num) => *num,
|
||||
},
|
||||
Subcommands::NumBlocks { amount } => last.0.saturating_sub(*amount) + 1,
|
||||
};
|
||||
Subcommands::NumBlocks { amount } => last.0.saturating_sub(*amount),
|
||||
} + 1;
|
||||
Ok(target..=last.0)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user