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 @@ -302,25 +302,6 @@ impl<'a> NakamotoStagingBlocksConnRef<'a> {
302
302
. optional ( ) ?)
303
303
}
304
304
305
- /// Get the block ID of a staging block from block hash.
306
- /// Used for downloads
307
- pub fn get_block_id_by_block_hash (
308
- & self ,
309
- block_hash : & BlockHeaderHash ,
310
- ) -> Result < Option < StacksBlockId > , ChainstateError > {
311
- let sql = "SELECT index_block_hash FROM nakamoto_staging_blocks WHERE block_hash = ?1" ;
312
- let args = params ! [ block_hash] ;
313
-
314
- let mut stmt = self . deref ( ) . prepare ( sql) ?;
315
- Ok ( stmt
316
- . query_row ( args, |row| {
317
- let block_id: StacksBlockId = row. get ( 0 ) ?;
318
-
319
- Ok ( block_id)
320
- } )
321
- . optional ( ) ?)
322
- }
323
-
324
305
/// Get a Nakamoto block by index block hash, as well as its size.
325
306
/// Verifies its integrity.
326
307
/// Returns Ok(Some(block, size)) if the block was present
You can’t perform that action at this time.
0 commit comments