mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-10 15:58:27 -05:00
fix: return correct file client tip (#1385)
This commit is contained in:
@@ -112,7 +112,7 @@ impl FileClient {
|
||||
|
||||
/// Get the tip hash of the chain.
|
||||
pub fn tip(&self) -> Option<H256> {
|
||||
self.headers.get(&(self.headers.len() as u64 - 1)).map(|h| h.hash_slow())
|
||||
self.headers.get(&(self.headers.len() as u64)).map(|h| h.hash_slow())
|
||||
}
|
||||
|
||||
/// Use the provided bodies as the file client's block body buffer.
|
||||
|
||||
Reference in New Issue
Block a user