We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c13e521 commit 5d9f472Copy full SHA for 5d9f472
stackslib/src/main.rs
@@ -906,9 +906,7 @@ simulating a miner.
906
.parse::<u64>()
907
.expect("<start_block> not a valid u64");
908
let arg5 = argv[5].parse::<u64>().expect("<end_block> not a valid u64");
909
- let start = arg4.saturating_sub(1);
910
- let blocks = arg5.saturating_sub(arg4);
911
- format!("SELECT index_block_hash FROM staging_blocks ORDER BY height ASC LIMIT {start}, {blocks}")
+ format!("SELECT index_block_hash FROM staging_blocks WHERE height >= {arg4} AND height < {arg5} ORDER BY height ASC, index_block_hash ASC")
912
}
913
Some("last") => format!(
914
"SELECT index_block_hash FROM staging_blocks ORDER BY height DESC LIMIT {}",
0 commit comments