docs: fix duplicate method comments in ChainInfoTracker (#18929)

This commit is contained in:
Avory
2025-10-16 23:53:36 +03:00
committed by GitHub
parent 25e8d6bb77
commit 53ef7a386c

View File

@@ -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)
}