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:
Jimmy Chen
2026-01-06 14:08:02 +11:00
committed by GitHub
parent ea3a3da1a4
commit dbe474e132
12 changed files with 106 additions and 493 deletions

View File

@@ -239,13 +239,7 @@ async fn produces_attestations() {
.unwrap();
chain
.early_attester_cache
.add_head_block(
block_root,
&available_block,
proto_block,
&state,
&chain.spec,
)
.add_head_block(block_root, &available_block, proto_block, &state)
.unwrap();
chain
.early_attester_cache
@@ -312,7 +306,6 @@ async fn early_attester_cache_old_request() {
&available_block,
head_proto_block,
&head.beacon_state,
&harness.chain.spec,
)
.unwrap();