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

Method new

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

Creates a new cache initialized with the given canonical block number.

(latest_canonical: BlockNumber)

Source from the content-addressed store, hash-verified

28impl FlashblockCache {
29 /// Creates a new cache initialized with the given canonical block number.
30 pub fn new(latest_canonical: BlockNumber) -> Self {
31 Self { entries: HashMap::new(), latest_canonical: Some(latest_canonical) }
32 }
33
34 /// Returns `true` when the flashblock is cached.
35 pub fn has_flashblock(&self, block_number: BlockNumber, index: u64) -> bool {

Callers

nothing calls this directly

Calls 1

newFunction · 0.50

Tested by

no test coverage detected