File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed
stackslib/src/chainstate/nakamoto Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -321,25 +321,6 @@ impl<'a> NakamotoStagingBlocksConnRef<'a> {
321
321
. optional ( ) ?)
322
322
}
323
323
324
- /// Get the block ID of a staging block from block height.
325
- /// Used for downloads
326
- pub fn get_block_id_by_block_height (
327
- & self ,
328
- block_height : u64 ,
329
- ) -> Result < Option < StacksBlockId > , ChainstateError > {
330
- let sql = "SELECT index_block_hash FROM nakamoto_staging_blocks WHERE height = ?1" ;
331
- let args = params ! [ block_height] ;
332
-
333
- let mut stmt = self . deref ( ) . prepare ( sql) ?;
334
- Ok ( stmt
335
- . query_row ( args, |row| {
336
- let block_id: StacksBlockId = row. get ( 0 ) ?;
337
-
338
- Ok ( block_id)
339
- } )
340
- . optional ( ) ?)
341
- }
342
-
343
324
/// Get a Nakamoto block by index block hash, as well as its size.
344
325
/// Verifies its integrity.
345
326
/// Returns Ok(Some(block, size)) if the block was present
You can’t perform that action at this time.
0 commit comments