prysm-pulse/validator/db/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
..
attestation_history_new_test.go Use new proposal protection format (#7518) 2020-10-15 19:35:31 +00:00
attestation_history_new.go Code health: review map usage (#7635) 2020-10-26 21:17:07 +00:00
attestation_history_test.go Apply testutils assertions: final cleanup (#7003) 2020-08-25 15:23:06 +00:00
attestation_history.go New attestation store for local protection (#7248) 2020-10-06 19:59:36 +00:00
BUILD.bazel Use new proposal protection format (#7518) 2020-10-15 19:35:31 +00:00
db_test.go Use new proposal protection format (#7518) 2020-10-15 19:35:31 +00:00
db.go Use new proposal protection format (#7518) 2020-10-15 19:35:31 +00:00
manage_test.go Use new proposal protection format (#7518) 2020-10-15 19:35:31 +00:00
manage.go Use new proposal protection format (#7518) 2020-10-15 19:35:31 +00:00
new_proposal_history_test.go Use new proposal protection format (#7518) 2020-10-15 19:35:31 +00:00
new_proposal_history.go Use new proposal protection format (#7518) 2020-10-15 19:35:31 +00:00
proposal_history_test.go Applies assertion funcs to validator tests (#6694) 2020-07-23 01:13:52 +00:00
proposal_history.go Use new proposal protection format (#7518) 2020-10-15 19:35:31 +00:00
schema.go Use new proposal protection format (#7518) 2020-10-15 19:35:31 +00:00