Add more logging to eth1 voting

This commit is contained in:
Paul Hauner
2019-11-26 14:42:27 +11:00
parent 4d4edda230
commit 743029a1de
3 changed files with 43 additions and 18 deletions

View File

@@ -59,6 +59,11 @@ impl BlockCache {
self.blocks.first().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)
}
/// Returns the highest block number stored.
pub fn highest_block_number(&self) -> Option<u64> {
self.blocks.last().map(|block| block.number)