mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-15 10:52:43 +00:00
Add lcli eth1-genesis command
This commit is contained in:
@@ -59,6 +59,11 @@ impl BlockCache {
|
||||
self.blocks.first().map(|block| block.timestamp)
|
||||
}
|
||||
|
||||
/// Returns the timestamp of the latest block in the cache (if any).
|
||||
pub fn latest_block_timestamp(&self) -> Option<u64> {
|
||||
self.blocks.last().map(|block| block.timestamp)
|
||||
}
|
||||
|
||||
/// Returns the lowest block number stored.
|
||||
pub fn lowest_block_number(&self) -> Option<u64> {
|
||||
self.blocks.first().map(|block| block.number)
|
||||
|
||||
Reference in New Issue
Block a user