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

Method block

crates/execution/metering/src/cache.rs:201–203  ·  view source on GitHub ↗

Returns the block metrics for the given block number.

(&self, block_number: u64)

Source from the content-addressed store, hash-verified

199
200 /// Returns the block metrics for the given block number.
201 pub fn block(&self, block_number: u64) -> Option<&BlockMetrics> {
202 self.blocks.get(&block_number)
203 }
204
205 /// Returns a mutable reference to the block, creating it if necessary.
206 pub fn block_mut(&mut self, block_number: u64) -> &mut BlockMetrics {

Callers 15

commit_built_payloadMethod · 0.45
get_sealed_payloadMethod · 0.45
render_chain_configFunction · 0.45
render_system_configFunction · 0.45
render_stats_panelFunction · 0.45
render_unconfiguredFunction · 0.45
render_loadingFunction · 0.45
render_chain_stateFunction · 0.45
render_anchor_stateFunction · 0.45
render_latest_proposalFunction · 0.45
render_sync_gapsFunction · 0.45
render_countdownFunction · 0.45

Calls 1

getMethod · 0.45