Skip to content

Commit

Permalink
Remove snapshot cache and other references.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmygchen committed Apr 30, 2024
1 parent c8ffafb commit 64db49a
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 532 deletions.
2 changes: 1 addition & 1 deletion beacon_node/beacon_chain/src/beacon_chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4399,7 +4399,7 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
} else {
info!(
self.log,
"Missed snapshot cache during withdrawals calculation";
"Missed state cache during withdrawals calculation";
"slot" => proposal_slot,
"parent_block_root" => ?parent_block_root
);
Expand Down
9 changes: 1 addition & 8 deletions beacon_node/beacon_chain/src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,11 @@ lazy_static! {
"beacon_block_processing_successes_total",
"Count of blocks processed without error"
);
// Keeping the existing "snapshot_cache" metric name as it would break existing dashboards
pub static ref BLOCK_PROCESSING_SNAPSHOT_CACHE_SIZE: Result<IntGauge> = try_create_int_gauge(
"beacon_block_processing_snapshot_cache_size",
"Count snapshots in the snapshot cache"
);
pub static ref BLOCK_PROCESSING_SNAPSHOT_CACHE_MISSES: Result<IntCounter> = try_create_int_counter(
"beacon_block_processing_snapshot_cache_misses",
"Count of snapshot cache misses"
);
pub static ref BLOCK_PROCESSING_SNAPSHOT_CACHE_CLONES: Result<IntCounter> = try_create_int_counter(
"beacon_block_processing_snapshot_cache_clones",
"Count of snapshot cache clones"
);
pub static ref BLOCK_PROCESSING_TIMES: Result<Histogram> =
try_create_histogram("beacon_block_processing_seconds", "Full runtime of block processing");
pub static ref BLOCK_PROCESSING_BLOCK_ROOT: Result<Histogram> = try_create_histogram(
Expand Down
Loading

0 comments on commit 64db49a

Please sign in to comment.