mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-11 00:08:13 -05:00
docs: fix duplicate method comments in ChainInfoTracker (#18929)
This commit is contained in:
@@ -77,22 +77,22 @@ where
|
||||
self.inner.finalized_block.borrow().clone()
|
||||
}
|
||||
|
||||
/// Returns the canonical head of the chain.
|
||||
/// Returns the `BlockNumHash` of the canonical head.
|
||||
pub fn get_canonical_num_hash(&self) -> BlockNumHash {
|
||||
self.inner.canonical_head.read().num_hash()
|
||||
}
|
||||
|
||||
/// Returns the canonical head of the chain.
|
||||
/// Returns the block number of the canonical head.
|
||||
pub fn get_canonical_block_number(&self) -> BlockNumber {
|
||||
self.inner.canonical_head_number.load(Ordering::Relaxed)
|
||||
}
|
||||
|
||||
/// Returns the safe header of the chain.
|
||||
/// Returns the `BlockNumHash` of the safe header.
|
||||
pub fn get_safe_num_hash(&self) -> Option<BlockNumHash> {
|
||||
self.inner.safe_block.borrow().as_ref().map(SealedHeader::num_hash)
|
||||
}
|
||||
|
||||
/// Returns the finalized header of the chain.
|
||||
/// Returns the `BlockNumHash` of the finalized header.
|
||||
pub fn get_finalized_num_hash(&self) -> Option<BlockNumHash> {
|
||||
self.inner.finalized_block.borrow().as_ref().map(SealedHeader::num_hash)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user