prysm-pulse/beacon-chain/cache
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
..
depositcache Code health: review map usage (#7635) 2020-10-26 21:17:07 +00:00
attestation_data_test.go Update fastssz: Attempt 2 (#7115) 2020-08-27 18:13:32 +00:00
attestation_data.go More feature flags removal (#7526) 2020-10-14 16:18:40 +00:00
BUILD.bazel Revamp proposer cache to fix lookahead bug (#7442) 2020-10-07 17:25:08 +00:00
checkpoint_state_test.go Update fastssz: Attempt 2 (#7115) 2020-08-27 18:13:32 +00:00
checkpoint_state.go Various code inspection resolutions (#7438) 2020-10-12 08:11:05 +00:00
committee_disabled.go Add beacon state unmarshal fuzzer, afl support (#6625) 2020-09-14 11:42:08 -07:00
committee_fuzz_test.go Applies assertion funcs to cache tests (#6617) 2020-07-16 19:34:08 +00:00
committee_test.go Revamp proposer cache to fix lookahead bug (#7442) 2020-10-07 17:25:08 +00:00
committee.go Revamp proposer cache to fix lookahead bug (#7442) 2020-10-07 17:25:08 +00:00
committees.go Revamp proposer cache to fix lookahead bug (#7442) 2020-10-07 17:25:08 +00:00
common.go Various code inspection resolutions (#7438) 2020-10-12 08:11:05 +00:00
doc.go All Beacon Node Package-Level Godocs (#5677) 2020-04-29 12:40:33 -05:00
feature_flag_test.go Miscellaneous code quality improvements (#7414) 2020-10-04 15:03:10 +00:00
hot_state_cache_test.go Applies assertion funcs to cache tests (#6617) 2020-07-16 19:34:08 +00:00
hot_state_cache.go Reset hot state cache size to 32 (#7340) 2020-09-24 18:10:02 +00:00
proposer_indices_disabled.go Revamp proposer cache to fix lookahead bug (#7442) 2020-10-07 17:25:08 +00:00
proposer_indices_test.go Revamp proposer cache to fix lookahead bug (#7442) 2020-10-07 17:25:08 +00:00
proposer_indices_type.go Revamp proposer cache to fix lookahead bug (#7442) 2020-10-07 17:25:08 +00:00
proposer_indices.go Revamp proposer cache to fix lookahead bug (#7442) 2020-10-07 17:25:08 +00:00
skip_slot_cache_test.go Applies assertion funcs to cache tests (#6617) 2020-07-16 19:34:08 +00:00
skip_slot_cache.go Various code inspection resolutions (#7438) 2020-10-12 08:11:05 +00:00
state_summary.go Code health: review map usage (#7635) 2020-10-26 21:17:07 +00:00
subnet_ids_test.go Miscellaneous code quality improvements (#7414) 2020-10-04 15:03:10 +00:00
subnet_ids.go Numeric conversion cleanup (#7465) 2020-10-13 12:43:49 +00:00