lighthouse/beacon_node/rest_api/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.rs minimize the number of places we are calling update_pubkey_cache (#1626) 2020-09-23 01:19:56 +00:00
config.rs Add ability to configure CORS header (#1345) 2020-07-16 07:23:14 +00:00
consensus.rs minimize the number of places we are calling update_pubkey_cache (#1626) 2020-09-23 01:19:56 +00:00
helpers.rs Shift HTTP server heavy-lifting to blocking executor (#1518) 2020-08-24 03:06:10 +00:00
lib.rs Shift HTTP server heavy-lifting to blocking executor (#1518) 2020-08-24 03:06:10 +00:00
lighthouse.rs Shift HTTP server heavy-lifting to blocking executor (#1518) 2020-08-24 03:06:10 +00:00
metrics.rs Shift HTTP server heavy-lifting to blocking executor (#1518) 2020-08-24 03:06:10 +00:00
node.rs Shift HTTP server heavy-lifting to blocking executor (#1518) 2020-08-24 03:06:10 +00:00
router.rs Shift HTTP server heavy-lifting to blocking executor (#1518) 2020-08-24 03:06:10 +00:00
url_query.rs Update VC and BN APIs for naive aggregation (#950) 2020-03-25 21:14:05 +11:00
validator.rs minimize the number of places we are calling update_pubkey_cache (#1626) 2020-09-23 01:19:56 +00:00