lighthouse/beacon_node
Michael Sproul efebf712dd Avoid cloning snapshots during sync (#3271)
## Issue Addressed

Closes https://github.com/sigp/lighthouse/issues/2944

## Proposed Changes

Remove snapshots from the cache during sync rather than cloning them. This reduces unnecessary cloning and memory fragmentation during sync.

## Additional Info

This PR relies on the fact that the `block_delay` cache is not populated for blocks from sync. Relying on block delay may have the side effect that a change in `block_delay` calculation could lead to: a) more clones, if block delays are added for syncing blocks or b) less clones, if blocks near the head are erroneously provided without a `block_delay`. Case (a) would be a regression to the current status quo, and (b) is low-risk given we know that the snapshot cache is current susceptible to misses (hence `tree-states`).
2022-06-20 23:20:29 +00:00
..
beacon_chain Avoid cloning snapshots during sync (#3271) 2022-06-20 23:20:29 +00:00
client Fix per-slot timer in presence of clock changes (#3243) 2022-06-06 23:52:32 +00:00
eth1 Improve eth1 block cache sync (for Ropsten) (#3234) 2022-06-03 06:05:03 +00:00
execution_layer Emit log when fee recipient values are inconsistent (#3202) 2022-06-03 03:22:54 +00:00
genesis Update and consolidate dependencies (#3136) 2022-04-04 00:26:16 +00:00
http_api Use genesis slot for node/syncing (#3226) 2022-05-31 06:09:11 +00:00
http_metrics Support IPv6 in BN and VC HTTP APIs (#3104) 2022-03-24 00:04:49 +00:00
lighthouse_network Improve substream management (#3261) 2022-06-10 06:58:50 +00:00
network Do not penalize peers on execution layer offline errors (#3258) 2022-06-19 23:13:40 +00:00
operation_pool Optimise per_epoch_processing low-hanging-fruit (#3254) 2022-06-10 04:29:28 +00:00
src Improve eth1 block cache sync (for Ropsten) (#3234) 2022-06-03 06:05:03 +00:00
store Separate execution payloads in the DB (#3157) 2022-05-12 00:42:17 +00:00
tests Altair consensus changes and refactors (#2279) 2021-07-09 06:15:32 +00:00
timer Fix per-slot timer in presence of clock changes (#3243) 2022-06-06 23:52:32 +00:00
Cargo.toml v2.3.1 (#3262) 2022-06-14 05:25:38 +00:00