lighthouse/consensus
Michael Sproul 84e6d71950 Tree hash caching and optimisations for Altair (#2459)
## Proposed Changes

Remove the remaining Altair `FIXME`s from consensus land.

1. Implement tree hash caching for the participation lists. This required some light type manipulation, including removing the `TreeHash` bound from `CachedTreeHash` which was purely descriptive.
2. Plumb the proposer index through Altair attestation processing, to avoid calculating it for _every_ attestation (potentially 128ms on large networks). This duplicates some work from #2431, but with the aim of getting it in sooner, particularly for the Altair devnets.
3. Removes two FIXMEs related to `superstruct` and cloning, which are unlikely to be particularly detrimental and will be tracked here instead: https://github.com/sigp/superstruct/issues/5
2021-07-23 00:23:53 +00:00
..
cached_tree_hash Tree hash caching and optimisations for Altair (#2459) 2021-07-23 00:23:53 +00:00
fork_choice Altair consensus changes and refactors (#2279) 2021-07-09 06:15:32 +00:00
int_to_bytes Update to tokio 1.1 (#2172) 2021-02-10 23:29:49 +00:00
merkle_proof Implement matches! macro (#1777) 2020-10-15 21:42:43 +00:00
proto_array Advance state to next slot after importing block (#2174) 2021-02-15 07:17:52 +00:00
safe_arith Remove saturating arith from state_processing (#1644) 2020-09-25 05:18:21 +00:00
serde_utils Altair consensus changes and refactors (#2279) 2021-07-09 06:15:32 +00:00
ssz [Altair] Sync committee pools (#2321) 2021-07-15 00:52:02 +00:00
ssz_derive Altair consensus changes and refactors (#2279) 2021-07-09 06:15:32 +00:00
ssz_types [Altair] Sync committee pools (#2321) 2021-07-15 00:52:02 +00:00
state_processing Tree hash caching and optimisations for Altair (#2459) 2021-07-23 00:23:53 +00:00
swap_or_not_shuffle Use hardware acceleration for SHA256 (#2426) 2021-07-12 08:47:01 +00:00
tree_hash Use hardware acceleration for SHA256 (#2426) 2021-07-12 08:47:01 +00:00
tree_hash_derive Altair consensus changes and refactors (#2279) 2021-07-09 06:15:32 +00:00
types Tree hash caching and optimisations for Altair (#2459) 2021-07-23 00:23:53 +00:00