MCPcopy Create free account
hub / github.com/base/base / has_flashblock

Method has_flashblock

crates/execution/flashblocks/src/cache.rs:35–37  ·  view source on GitHub ↗

Returns `true` when the flashblock is cached.

(&self, block_number: BlockNumber, index: u64)

Source from the content-addressed store, hash-verified

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

Callers 1

apply_flashblockMethod · 0.80

Calls 2

is_someMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected