lighthouse/consensus/state_processing/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
..
common Bump all spec tags to v0.12.1 (#1275) 2020-06-19 11:18:27 +10:00
per_block_processing minimize the number of places we are calling update_pubkey_cache (#1626) 2020-09-23 01:19:56 +00:00
per_epoch_processing Add safe_sum and use it in state_processing (#1620) 2020-09-22 05:40:04 +00:00
genesis.rs get_active_validator_indices() now has bound check (#1300) 2020-06-29 18:21:51 +10:00
lib.rs Process exits and slashings off the network (#1253) 2020-06-18 21:06:34 +10:00
macros.rs Directory Restructure (#1163) 2020-05-18 21:24:23 +10:00
per_block_processing.rs minimize the number of places we are calling update_pubkey_cache (#1626) 2020-09-23 01:19:56 +00:00
per_epoch_processing.rs Fix clippy warnings (#1385) 2020-07-23 14:18:00 +00:00
per_slot_processing.rs Fix clippy warnings (#1385) 2020-07-23 14:18:00 +00:00
test_utils.rs Improve bls::SecretKey privacy (#1164) 2020-05-19 11:23:08 +10:00
verify_operation.rs Process exits and slashings off the network (#1253) 2020-06-18 21:06:34 +10:00