prysm-pulse/beacon-chain/blockchain
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
..
testing Code health: review map usage (#7635) 2020-10-26 21:17:07 +00:00
BUILD.bazel Remove checkpoint info cache and usages (#7642) 2020-10-26 14:09:19 -05:00
chain_info_norace_test.go Applies assertion funcs to blockchain tests (#6605) 2020-07-16 12:11:39 +00:00
chain_info_test.go Move IsCanonical implementation to forkchoice package (#7602) 2020-10-23 01:32:13 +00:00
chain_info.go Move IsCanonical implementation to forkchoice package (#7602) 2020-10-23 01:32:13 +00:00
head_test.go Move IsCanonical implementation to forkchoice package (#7602) 2020-10-23 01:32:13 +00:00
head.go Move IsCanonical implementation to forkchoice package (#7602) 2020-10-23 01:32:13 +00:00
info_test.go Fix ineffectual assignments (#7403) 2020-10-01 18:53:36 +00:00
info.go Refactor head info for better usages for lock (#7432) 2020-10-06 10:57:18 +00:00
init_sync_process_block.go Move skip-regen-historical-states to deprecated (#6512) 2020-07-08 00:15:45 +00:00
log.go Unnecessary Slice-to-Slice Conversion analyzer (#7321) 2020-09-23 16:14:34 +00:00
metrics_test.go Update participation metrics (#7582) 2020-10-20 14:14:24 -05:00
metrics.go Deep Source Security Issues (#7617) 2020-10-22 23:31:52 +00:00
process_attestation_helpers.go Remove checkpoint info cache and usages (#7642) 2020-10-26 14:09:19 -05:00
process_attestation_test.go Remove checkpoint info cache and usages (#7642) 2020-10-26 14:09:19 -05:00
process_attestation.go Remove checkpoint info cache and usages (#7642) 2020-10-26 14:09:19 -05:00
process_block_helpers.go Add span for AncestorRoot (#7595) 2020-10-21 16:26:19 +00:00
process_block_test.go Code health: review map usage (#7635) 2020-10-26 21:17:07 +00:00
process_block.go Update participation metrics (#7582) 2020-10-20 14:14:24 -05:00
receive_attestation_test.go Remove checkpoint info cache and usages (#7642) 2020-10-26 14:09:19 -05:00
receive_attestation.go Remove checkpoint info cache and usages (#7642) 2020-10-26 14:09:19 -05:00
receive_block_test.go Save state to DB during long non-finality (#7597) 2020-10-23 00:35:30 +00:00
receive_block.go Save state to DB during long non-finality (#7597) 2020-10-23 00:35:30 +00:00
service_norace_test.go Applies assertion funcs to blockchain tests (#6605) 2020-07-16 12:11:39 +00:00
service_test.go Verify interface compliance using typed nil instead of dereferencing and conversion (#7489) 2020-10-10 00:36:48 +00:00
service.go Code health: review map usage (#7635) 2020-10-26 21:17:07 +00:00
weak_subjectivity_checks_test.go Add, use and test VerifyWeakSubjectivityRoot (#7344) 2020-09-26 08:04:07 +00:00
weak_subjectivity_checks.go Add, use and test VerifyWeakSubjectivityRoot (#7344) 2020-09-26 08:04:07 +00:00