Skip to content

Commit

Permalink
src/args.rs:apply cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
RandyMcMillan committed Sep 5, 2024
1 parent 068ffce commit ce7aac0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pub fn block_txs(block_hash: &str, start_index: &str) {
/// GET /api/v1/blocks[/:startHeight]
/// <https://mempool.space/docs/api/rest#get-blocks>
pub fn blocks(start_height: &str, _print: bool) {
let blocks_tip_height = api::api("blocks_tip_height", "extraneous_arg", /*print*/false);
let blocks_tip_height = api::api("blocks_tip_height", "extraneous_arg", /*print*/ false);
let blocks_tip_height_int = blocks_tip_height.parse::<i32>().unwrap_or(0);
let start_height_int = start_height.parse::<i32>().unwrap_or(0);
if start_height_int >= 0 && start_height_int <= blocks_tip_height_int {
Expand Down

0 comments on commit ce7aac0

Please sign in to comment.