Skip to content

Commit 6fd437d

Browse files
committed
chore: remove unnecessary fields from queries
1 parent 1410c4a commit 6fd437d

File tree

1 file changed

+2
-4
lines changed
  • contrib/stacks-inspect/src

1 file changed

+2
-4
lines changed

contrib/stacks-inspect/src/lib.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -259,9 +259,7 @@ fn collect_epoch2_entries(
259259
.unwrap_or_else(|e| {
260260
panic!("Failed to open staging blocks DB at {staging_blocks_db_path}: {e}");
261261
});
262-
let sql = format!(
263-
"SELECT index_block_hash, consensus_hash, anchored_block_hash, height FROM staging_blocks {clause}"
264-
);
262+
let sql = format!("SELECT index_block_hash FROM staging_blocks {clause}");
265263
let mut stmt = conn.prepare(&sql).unwrap_or_else(|e| {
266264
panic!("Failed to prepare query over staging_blocks: {e}");
267265
});
@@ -299,7 +297,7 @@ fn collect_nakamoto_entries(
299297
return true;
300298
}
301299

302-
let sql = format!("SELECT index_block_hash, height FROM nakamoto_staging_blocks {clause}");
300+
let sql = format!("SELECT index_block_hash FROM nakamoto_staging_blocks {clause}");
303301
let conn = chainstate.nakamoto_blocks_db();
304302
let mut stmt = conn.prepare(&sql).unwrap_or_else(|e| {
305303
panic!("Failed to prepare query over nakamoto_staging_blocks: {e}");

0 commit comments

Comments
 (0)