lighthouse/consensus/types/src
realbigsean b75df29501 minimize the number of places we are calling update_pubkey_cache (#1626)
## Issue Addressed

- Resolves #1080

## Proposed Changes

- Call `update_pubkey_cache` only in the `build_all_caches` method and `get_validator_index` method. 

## Additional Info

This does reduce the number of places the cache is updated, making it simpler. But the `get_validator_index` method is used a couple times when we are iterating through the entire validator registry (or set of active validators). Before, we would only call `update_pubkey_cache` once before iterating through all validators.  So I'm not _totally_ sure this change is worth it.
2020-09-23 01:19:56 +00:00
..
beacon_state Memory usage reduction (#1522) 2020-08-17 08:05:13 +00:00
test_utils Support multiple BLS implementations (#1335) 2020-07-25 02:03:18 +00:00
utils Set Graffiti via CLI (#1320) 2020-07-14 08:05:02 +00:00
aggregate_and_proof.rs Support multiple BLS implementations (#1335) 2020-07-25 02:03:18 +00:00
attestation_data.rs Bump all spec tags to v0.12.1 (#1275) 2020-06-19 11:18:27 +10:00
attestation_duty.rs Directory Restructure (#1163) 2020-05-18 21:24:23 +10:00
attestation.rs Support multiple BLS implementations (#1335) 2020-07-25 02:03:18 +00:00
attester_slashing.rs Merge remote-tracking branch 'origin/master' into spec-v0.12 2020-06-26 12:57:56 +10:00
beacon_block_body.rs Set Graffiti via CLI (#1320) 2020-07-14 08:05:02 +00:00
beacon_block_header.rs Support multiple BLS implementations (#1335) 2020-07-25 02:03:18 +00:00
beacon_block.rs Support multiple BLS implementations (#1335) 2020-07-25 02:03:18 +00:00
beacon_committee.rs Directory Restructure (#1163) 2020-05-18 21:24:23 +10:00
beacon_state.rs minimize the number of places we are calling update_pubkey_cache (#1626) 2020-09-23 01:19:56 +00:00
chain_spec.rs Bump all spec tags to v0.12.1 (#1275) 2020-06-19 11:18:27 +10:00
checkpoint.rs Bump all spec tags to v0.12.1 (#1275) 2020-06-19 11:18:27 +10:00
deposit_data.rs Support multiple BLS implementations (#1335) 2020-07-25 02:03:18 +00:00
deposit_message.rs Bump all spec tags to v0.12.1 (#1275) 2020-06-19 11:18:27 +10:00
deposit.rs Bump all spec tags to v0.12.1 (#1275) 2020-06-19 11:18:27 +10:00
enr_fork_id.rs Directory Restructure (#1163) 2020-05-18 21:24:23 +10:00
eth1_data.rs Bump all spec tags to v0.12.1 (#1275) 2020-06-19 11:18:27 +10:00
eth_spec.rs Bump all spec tags to v0.12.1 (#1275) 2020-06-19 11:18:27 +10:00
fork_data.rs Bump all spec tags to v0.12.1 (#1275) 2020-06-19 11:18:27 +10:00
fork.rs Bump all spec tags to v0.12.1 (#1275) 2020-06-19 11:18:27 +10:00
free_attestation.rs Directory Restructure (#1163) 2020-05-18 21:24:23 +10:00
historical_batch.rs Bump all spec tags to v0.12.1 (#1275) 2020-06-19 11:18:27 +10:00
indexed_attestation.rs Merge remote-tracking branch 'origin/master' into spec-v0.12 2020-06-26 12:57:56 +10:00
lib.rs Support multiple BLS implementations (#1335) 2020-07-25 02:03:18 +00:00
pending_attestation.rs Bump all spec tags to v0.12.1 (#1275) 2020-06-19 11:18:27 +10:00
proposer_slashing.rs Bump all spec tags to v0.12.1 (#1275) 2020-06-19 11:18:27 +10:00
relative_epoch.rs Bump all spec tags to v0.12.1 (#1275) 2020-06-19 11:18:27 +10:00
selection_proof.rs Support multiple BLS implementations (#1335) 2020-07-25 02:03:18 +00:00
signed_aggregate_and_proof.rs Support multiple BLS implementations (#1335) 2020-07-25 02:03:18 +00:00
signed_beacon_block_header.rs Bump all spec tags to v0.12.1 (#1275) 2020-06-19 11:18:27 +10:00
signed_beacon_block.rs Support multiple BLS implementations (#1335) 2020-07-25 02:03:18 +00:00
signed_voluntary_exit.rs Bump all spec tags to v0.12.1 (#1275) 2020-06-19 11:18:27 +10:00
signing_data.rs Consensus updates for v0.12 (#1228) 2020-06-03 14:56:54 +10:00
slot_epoch_macros.rs Directory Restructure (#1163) 2020-05-18 21:24:23 +10:00
slot_epoch.rs Don't quote slot and epoch, for now (#1597) 2020-09-08 02:12:36 +00:00
sqlite.rs Directory Restructure (#1163) 2020-05-18 21:24:23 +10:00
subnet_id.rs Use all attestation subnets (#1257) 2020-06-18 19:11:03 +10:00
tree_hash_impls.rs Support multiple BLS implementations (#1335) 2020-07-25 02:03:18 +00:00
utils.rs Add serde_utils module with quoted u64 support (#1588) 2020-09-07 01:03:53 +00:00
validator.rs Bump all spec tags to v0.12.1 (#1275) 2020-06-19 11:18:27 +10:00
voluntary_exit.rs Support multiple BLS implementations (#1335) 2020-07-25 02:03:18 +00:00