Skip to content

Commit fc2e4c3

Browse files
committed
removed useless get_nakamoto_block_by_hash_rowid and added notes about height test value
1 parent 2cd02d6 commit fc2e4c3

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

stackslib/src/chainstate/nakamoto/staging_blocks.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -282,17 +282,6 @@ impl<'a> NakamotoStagingBlocksConnRef<'a> {
282282
Ok(res)
283283
}
284284

285-
/// Get the rowid of a staging Nakamoto block by block_hash
286-
pub fn get_nakamoto_block_by_hash_rowid(
287-
&self,
288-
block_hash: &StacksBlockId,
289-
) -> Result<Option<i64>, ChainstateError> {
290-
let sql = "SELECT rowid FROM nakamoto_staging_blocks WHERE block_hash = ?1";
291-
let args = params![block_hash];
292-
let res: Option<i64> = query_row(self, sql, args)?;
293-
Ok(res)
294-
}
295-
296285
/// Get the tenure and parent block ID of a staging block.
297286
/// Used for downloads
298287
pub fn get_tenure_and_parent_block_id(

0 commit comments

Comments
 (0)