prysm-pulse/beacon-chain/operations/slashings
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
..
BUILD.bazel Code health: review map usage (#7635) 2020-10-26 21:17:07 +00:00
doc.go All Beacon Node Package-Level Godocs (#5677) 2020-04-29 12:40:33 -05:00
log.go Validate slashings upon pool exit (#5848) 2020-05-14 17:11:28 +00:00
metrics.go Verify Slashing Signatures Before Putting Into Blocks (#5071) 2020-03-12 01:16:55 +00:00
service_attester_test.go Add functionality to retrieve all pending items from pools (#7530) 2020-10-14 21:08:24 +00:00
service_proposer_test.go Add functionality to retrieve all pending items from pools (#7530) 2020-10-14 21:08:24 +00:00
service_test.go Code health: review map usage (#7635) 2020-10-26 21:17:07 +00:00
service.go Code health: review map usage (#7635) 2020-10-26 21:17:07 +00:00
types.go Slashing operations pool (#4726) 2020-02-07 10:32:51 +08:00