prysm-pulse/beacon-chain/operations/attestations/kv
Preston Van Loon fcbb168c76
Code health: review map usage (#7635)
* remove unused cache states map

* correct typo

* Remove unused array

* Add lock around deposits cache chainstart pubkeys

* Copy attestation before grabbing lock. This may reduce lock contention time as other callers wanting the lock do not need to wait as long for the lock to become available.

* Copy attestation before grabbing lock. This may reduce lock contention time as other callers wanting the lock do not need to wait as long for the lock to become available.

* Set capacity to 1 since it is known that the slice will be 1 after insertion

* require validatorSlashingPreconditionCheck caller to hold lock

* Add lock for voluntary exits pool HasBeenIncluded

* Require rate limiter retrieveCollector to hold lock

* Add lock requirement assertions in sync

* Remove unused struct

* remove ClearCachedStates API

* field initSyncState is unused

Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2020-10-26 21:17:07 +00:00
..
aggregated_test.go Att aggregator filter by slot and index (#7206) 2020-09-10 15:55:45 +00:00
aggregated.go Combines func params of the same type (#7500) 2020-10-12 15:43:19 +00:00
benchmark_test.go Apply testutils assertions: final cleanup (#7003) 2020-08-25 15:23:06 +00:00
block_test.go Check block attestation length for operation pool (#7420) 2020-10-02 20:08:06 +00:00
block.go Code health: review map usage (#7635) 2020-10-26 21:17:07 +00:00
BUILD.bazel Update fastssz: Attempt 2 (#7115) 2020-08-27 18:13:32 +00:00
forkchoice_test.go Update fastssz: Attempt 2 (#7115) 2020-08-27 18:13:32 +00:00
forkchoice.go Code health: review map usage (#7635) 2020-10-26 21:17:07 +00:00
kv.go Pool: Use a TTL cache for seen bits (#7015) 2020-08-21 16:27:51 -07:00
seen_bits_test.go Disallows bitlist duplicates in seen_bits cache (#7203) 2020-09-10 15:24:23 +00:00
seen_bits.go Disallows bitlist duplicates in seen_bits cache (#7203) 2020-09-10 15:24:23 +00:00
unaggregated_test.go Removes attestation pool pruning from UnaggregatedAttestations getter (#7204) 2020-09-10 18:35:57 +00:00
unaggregated.go Code health: review map usage (#7635) 2020-10-26 21:17:07 +00:00