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

@@ -173,6 +173,11 @@ impl Service {
self.inner.block_cache.read().earliest_block_timestamp()
}
/// Returns the lowest block number stored.
pub fn lowest_block_number(&self) -> Option<u64> {
self.inner.block_cache.read().lowest_block_number()
}
/// Returns the number of currently cached blocks.
pub fn block_cache_len(&self) -> usize {
self.blocks().read().len()