Returns the total number of individual flashblocks cached across all block numbers.
(&self)
| 92 | /// Returns the total number of individual flashblocks cached across all |
| 93 | /// block numbers. |
| 94 | pub fn total_flashblocks(&self) -> usize { |
| 95 | self.entries.values().map(|by_index| by_index.len()).sum() |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | #[cfg(test)] |