lighthouse/consensus/state_processing/src
Michael Sproul 59ec6b71b8 Consensus context with proposer index caching (#3604)
## Issue Addressed

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

## Proposed Changes

Backport some changes from `tree-states` that remove duplicated calculations of the `proposer_index`.

With this change the proposer index should be calculated only once for each block, and then plumbed through to every place it is required.

## Additional Info

In future I hope to add more data to the consensus context that is cached on a per-epoch basis, like the effective balances of validators and the base rewards.

There are some other changes to remove indexing in tests that were also useful for `tree-states` (the `tree-states` types don't implement `Index`).
2022-10-15 22:25:54 +00:00
..
common Consensus context with proposer index caching (#3604) 2022-10-15 22:25:54 +00:00
per_block_processing Consensus context with proposer index caching (#3604) 2022-10-15 22:25:54 +00:00
per_epoch_processing Fix attestation performance API InvalidValidatorIndex error (#3503) 2022-09-05 04:50:45 +00:00
upgrade Refactor op pool for speed and correctness (#3312) 2022-08-29 09:10:26 +00:00
block_replayer.rs Consensus context with proposer index caching (#3604) 2022-10-15 22:25:54 +00:00
consensus_context.rs Consensus context with proposer index caching (#3604) 2022-10-15 22:25:54 +00:00
genesis.rs Update to spec v1.1.8 (#2893) 2022-01-19 00:24:19 +00:00
lib.rs Consensus context with proposer index caching (#3604) 2022-10-15 22:25:54 +00:00
macros.rs Directory Restructure (#1163) 2020-05-18 21:24:23 +10:00
metrics.rs Cache participating indices for Altair epoch processing (#2416) 2021-07-27 07:01:01 +00:00
per_block_processing.rs Consensus context with proposer index caching (#3604) 2022-10-15 22:25:54 +00:00
per_epoch_processing.rs Realized unrealized experimentation (#3322) 2022-07-25 23:53:26 +00:00
per_slot_processing.rs Update to spec v1.1.8 (#2893) 2022-01-19 00:24:19 +00:00
state_advance.rs Altair consensus changes and refactors (#2279) 2021-07-09 06:15:32 +00:00
upgrade.rs Update to spec v1.1.8 (#2893) 2022-01-19 00:24:19 +00:00
verify_operation.rs Refactor op pool for speed and correctness (#3312) 2022-08-29 09:10:26 +00:00