lighthouse/beacon_node
Michael Sproul a43d5e161f Optimise balances cache in case of skipped slots (#2849)
## Proposed Changes

Remove the `is_first_block_in_epoch` logic from the balances cache update logic, as it was incorrect in the case of skipped slots. The updated code is simpler because regardless of whether the block is the first in the epoch we can check if an entry for the epoch boundary root already exists in the cache, and update the cache accordingly.

Additionally, to assist with flip-flopping justified epochs, move to cloning the balance cache rather than moving it. This should still be very fast in practice because the balances cache is a ~1.6MB `Vec`, and this operation is expected to only occur infrequently.
2021-12-13 23:35:57 +00:00
..
beacon_chain Optimise balances cache in case of skipped slots (#2849) 2021-12-13 23:35:57 +00:00
client v1.1.6 Fork Choice changes (#2822) 2021-12-13 20:43:22 +00:00
eth1 Bump crate versions (#2829) 2021-12-02 14:29:57 +11:00
execution_layer Merge devnet 3 (#2859) 2021-12-12 09:04:21 +00:00
genesis Bump crate versions (#2829) 2021-12-02 14:29:57 +11:00
http_api 1.57.0 lints (#2850) 2021-12-03 04:44:30 +00:00
http_metrics Update Lighthouse Dependencies (#2818) 2021-11-18 05:08:42 +00:00
lighthouse_network v1.1.6 Fork Choice changes (#2822) 2021-12-13 20:43:22 +00:00
network 1.57.0 lints (#2850) 2021-12-03 04:44:30 +00:00
operation_pool Bump crate versions (#2829) 2021-12-02 14:29:57 +11:00
src v1.1.6 Fork Choice changes (#2822) 2021-12-13 20:43:22 +00:00
store Optimise balances cache in case of skipped slots (#2849) 2021-12-13 23:35:57 +00:00
tests Altair consensus changes and refactors (#2279) 2021-07-09 06:15:32 +00:00
timer Update Lighthouse Dependencies (#2818) 2021-11-18 05:08:42 +00:00
Cargo.toml Rename eth2_libp2p to lighthouse_network (#2702) 2021-10-19 00:30:39 +00:00