mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-31 13:17:09 +00:00
Delete attester cache (#8469)
Fixes attester cache write lock contention. Alternative to #8463. Co-Authored-By: Jimmy Chen <jchen.tc@gmail.com>
This commit is contained in:
@@ -1029,7 +1029,6 @@ where
|
||||
block_times_cache: <_>::default(),
|
||||
pre_finalization_block_cache: <_>::default(),
|
||||
validator_pubkey_cache: RwLock::new(validator_pubkey_cache),
|
||||
attester_cache: <_>::default(),
|
||||
early_attester_cache: <_>::default(),
|
||||
light_client_server_cache: LightClientServerCache::new(),
|
||||
light_client_server_tx: self.light_client_server_tx,
|
||||
@@ -1061,16 +1060,6 @@ where
|
||||
|
||||
let head = beacon_chain.head_snapshot();
|
||||
|
||||
// Prime the attester cache with the head state.
|
||||
beacon_chain
|
||||
.attester_cache
|
||||
.maybe_cache_state(
|
||||
&head.beacon_state,
|
||||
head.beacon_block_root,
|
||||
&beacon_chain.spec,
|
||||
)
|
||||
.map_err(|e| format!("Failed to prime attester cache: {:?}", e))?;
|
||||
|
||||
// Only perform the check if it was configured.
|
||||
if let Some(wss_checkpoint) = beacon_chain.config.weak_subjectivity_checkpoint
|
||||
&& let Err(e) = beacon_chain.verify_weak_subjectivity_checkpoint(
|
||||
|
||||
Reference in New Issue
Block a user