diff --git a/crates/storage/provider/src/providers/database/provider.rs b/crates/storage/provider/src/providers/database/provider.rs index dec82dd68b..cb0ddd2d3a 100644 --- a/crates/storage/provider/src/providers/database/provider.rs +++ b/crates/storage/provider/src/providers/database/provider.rs @@ -1110,23 +1110,6 @@ impl<'this, TX: DbTxMut<'this> + DbTx<'this>> DatabaseProvider<'this, TX> { self.tx.put::(id.to_string(), checkpoint) } - /// Get lastest block number. - pub fn tip_number(&self) -> std::result::Result { - Ok(self.tx.cursor_read::()?.last()?.unwrap_or_default().0) - } - - /// Query [tables::CanonicalHeaders] table for block hash by block number - pub fn get_block_hash( - &self, - block_number: BlockNumber, - ) -> std::result::Result { - let hash = self - .tx - .get::(block_number)? - .ok_or_else(|| ProviderError::HeaderNotFound(block_number.into()))?; - Ok(hash) - } - /// Query the block body by number. pub fn block_body_indices( &self, @@ -1139,24 +1122,6 @@ impl<'this, TX: DbTxMut<'this> + DbTx<'this>> DatabaseProvider<'this, TX> { Ok(body) } - /// Query the block header by number - pub fn get_header(&self, number: BlockNumber) -> std::result::Result { - let header = self - .tx - .get::(number)? - .ok_or_else(|| ProviderError::HeaderNotFound(number.into()))?; - Ok(header) - } - - /// Get the total difficulty for a block. - pub fn get_td(&self, block: BlockNumber) -> std::result::Result { - let td = self - .tx - .get::(block)? - .ok_or(ProviderError::TotalDifficultyNotFound { number: block })?; - Ok(td.into()) - } - /// Unwind table by some number key. /// Returns number of rows unwound. ///