mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-07 08:52:54 +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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user