Returns `true` when the flashblock is cached.
(&self, block_number: BlockNumber, index: u64)
| 33 | |
| 34 | /// Returns `true` when the flashblock is cached. |
| 35 | pub fn has_flashblock(&self, block_number: BlockNumber, index: u64) -> bool { |
| 36 | self.entries.get(&block_number).and_then(|by_index| by_index.get(&index)).is_some() |
| 37 | } |
| 38 | |
| 39 | /// Returns `true` when the flashblock's block number is within |
| 40 | /// [`MAX_CACHE_AHEAD_BLOCKS`] of the latest known canonical block and is |
no test coverage detected