prysm-pulse/beacon-chain/sync
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
..
initial-sync Code health: review map usage (#7635) 2020-10-26 21:17:07 +00:00
BUILD.bazel Code health: review map usage (#7635) 2020-10-26 21:17:07 +00:00
deadlines.go Validate RPC Topics Before Sending Requests (#6558) 2020-07-13 09:20:53 +08:00
decode_pubsub_test.go Update PubSub and include topic filter (#7496) 2020-10-16 07:05:40 +00:00
decode_pubsub.go Update PubSub and include topic filter (#7496) 2020-10-16 07:05:40 +00:00
doc.go Regular Sync - First Pass (#3201) 2019-08-16 13:13:04 -04:00
error_test.go Use Custom SSZ for P2P Types (#7436) 2020-10-14 07:55:28 +00:00
error.go Fix Range Request Responses (#7531) 2020-10-22 09:33:01 -05:00
fuzz_exports.go Add beacon state unmarshal fuzzer, afl support (#6625) 2020-09-14 11:42:08 -07:00
log.go Regular Sync - First Pass (#3201) 2019-08-16 13:13:04 -04:00
metrics.go More feature flag deletions (#7533) 2020-10-14 23:28:49 +00:00
pending_attestations_queue_test.go Add checking for finalized consistency (#7568) 2020-10-19 21:52:18 +00:00
pending_attestations_queue.go Code health: review map usage (#7635) 2020-10-26 21:17:07 +00:00
pending_blocks_queue_test.go Use Custom SSZ for P2P Types (#7436) 2020-10-14 07:55:28 +00:00
pending_blocks_queue.go Code health: review map usage (#7635) 2020-10-26 21:17:07 +00:00
rate_limiter_test.go Code health: review map usage (#7635) 2020-10-26 21:17:07 +00:00
rate_limiter.go Code health: review map usage (#7635) 2020-10-26 21:17:07 +00:00
rpc_beacon_blocks_by_range_test.go Clean Up Block Retrieval Methods (#7593) 2020-10-23 04:23:15 +00:00
rpc_beacon_blocks_by_range.go Fix Range Request Responses (#7531) 2020-10-22 09:33:01 -05:00
rpc_beacon_blocks_by_root_test.go Code health: review map usage (#7635) 2020-10-26 21:17:07 +00:00
rpc_beacon_blocks_by_root.go Update error usage patterns to go1.13+ (#7529) 2020-10-14 17:39:52 +00:00
rpc_chunked_response.go QSP 32: Add Appropriate Stream Deadlines for RPC Requests (#6583) 2020-07-13 19:40:12 +00:00
rpc_goodbye_test.go Use Custom SSZ for P2P Types (#7436) 2020-10-14 07:55:28 +00:00
rpc_goodbye.go Add lighthouse p2p Good Bye codes (#7601) 2020-10-22 00:35:10 +00:00
rpc_metadata_test.go Various code inspection resolutions (#7438) 2020-10-12 08:11:05 +00:00
rpc_metadata.go Various code inspection resolutions (#7438) 2020-10-12 08:11:05 +00:00
rpc_ping_test.go Use Custom SSZ for P2P Types (#7436) 2020-10-14 07:55:28 +00:00
rpc_ping.go Update error usage patterns to go1.13+ (#7529) 2020-10-14 17:39:52 +00:00
rpc_status_test.go Use Custom SSZ for P2P Types (#7436) 2020-10-14 07:55:28 +00:00
rpc_status.go Update error usage patterns to go1.13+ (#7529) 2020-10-14 17:39:52 +00:00
rpc_test.go Use Custom SSZ for P2P Types (#7436) 2020-10-14 07:55:28 +00:00
rpc.go Replace Roughtime With Timeutils Across Prysm (#7301) 2020-09-22 19:49:58 +08:00
service_test.go check chainstart (#7494) 2020-10-15 22:03:48 +08:00
service.go check chainstart (#7494) 2020-10-15 22:03:48 +08:00
subscriber_beacon_aggregate_proof_test.go Update fastssz: Attempt 2 (#7115) 2020-08-27 18:13:32 +00:00
subscriber_beacon_aggregate_proof.go Various code inspection resolutions (#7438) 2020-10-12 08:11:05 +00:00
subscriber_beacon_attestation.go Various code inspection resolutions (#7438) 2020-10-12 08:11:05 +00:00
subscriber_beacon_blocks_test.go Update fastssz: Attempt 2 (#7115) 2020-08-27 18:13:32 +00:00
subscriber_beacon_blocks.go Update fastssz: Attempt 2 (#7115) 2020-08-27 18:13:32 +00:00
subscriber_handlers.go Renames receiver in sync service (#6348) 2020-06-22 20:37:48 +00:00
subscriber_test.go Ignore PreGenesis Messages Instead Of Rejecting Them (#7550) 2020-10-22 15:43:35 +00:00
subscriber.go Remove Unusued Base Parameter in SubscribeWithBase (#7608) 2020-10-22 16:56:24 +00:00
sync_test.go Refactors redundant global variables from sync (#5860) 2020-05-15 08:53:19 +00:00
utils_test.go Various code inspection resolutions (#7438) 2020-10-12 08:11:05 +00:00
utils.go Batch Block Roots Requesting (#7027) 2020-08-20 04:50:14 +00:00
validate_aggregate_proof_test.go Remove checkpoint info cache and usages (#7642) 2020-10-26 14:09:19 -05:00
validate_aggregate_proof.go Remove checkpoint info cache and usages (#7642) 2020-10-26 14:09:19 -05:00
validate_attester_slashing_test.go Update PubSub and include topic filter (#7496) 2020-10-16 07:05:40 +00:00
validate_attester_slashing.go Combines func params of the same type (#7500) 2020-10-12 15:43:19 +00:00
validate_beacon_attestation_test.go Remove checkpoint info cache and usages (#7642) 2020-10-26 14:09:19 -05:00
validate_beacon_attestation.go Remove checkpoint info cache and usages (#7642) 2020-10-26 14:09:19 -05:00
validate_beacon_blocks_test.go Update PubSub and include topic filter (#7496) 2020-10-16 07:05:40 +00:00
validate_beacon_blocks.go Combines func params of the same type (#7500) 2020-10-12 15:43:19 +00:00
validate_proposer_slashing_test.go Update PubSub and include topic filter (#7496) 2020-10-16 07:05:40 +00:00
validate_proposer_slashing.go Remove processSlots from slashing check (#7357) 2020-09-29 13:22:55 +08:00
validate_voluntary_exit_test.go Update PubSub and include topic filter (#7496) 2020-10-16 07:05:40 +00:00
validate_voluntary_exit.go Use state slot to verify exit signature (#7155) 2020-09-02 00:57:52 +00:00