lighthouse/lcli/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
..
block_root.rs Add lcli block-root tool (#3580) 2022-09-16 08:54:04 +00:00
change_genesis_time.rs Altair consensus changes and refactors (#2279) 2021-07-09 06:15:32 +00:00
check_deposit_data.rs Update testnet tooling (#1001) 2020-04-19 02:20:43 +00:00
create_payload_header.rs Rename random to prev_randao (#3040) 2022-03-03 02:10:57 +00:00
deploy_deposit_contract.rs Fix local testnet scripts (#2229) 2021-03-30 05:17:58 +00:00
eth1_genesis.rs Remove fallback support from eth1 service (#3594) 2022-10-04 08:33:39 +00:00
generate_bootnode_enr.rs Additional networking metrics (#2549) 2021-12-22 06:17:14 +00:00
indexed_attestations.rs Add lcli indexed-attestations (#3221) 2022-05-31 06:09:08 +00:00
insecure_validators.rs Fix local testnet scripts (#2229) 2021-03-30 05:17:58 +00:00
interop_genesis.rs v1.1.1 spec updates (#2684) 2021-12-02 14:26:54 +11:00
main.rs CLI tests for logging flags (#3609) 2022-10-04 08:33:40 +00:00
new_testnet.rs Retrospective invalidation of exec. payloads for opt. sync (#2837) 2022-02-28 22:07:48 +00:00
parse_ssz.rs Realized unrealized experimentation (#3322) 2022-07-25 23:53:26 +00:00
replace_state_pubkeys.rs Update lcli pubkey replace command (#2677) 2021-12-02 14:26:53 +11:00
skip_slots.rs Consensus context with proposer index caching (#3604) 2022-10-15 22:25:54 +00:00
transition_blocks.rs Consensus context with proposer index caching (#3604) 2022-10-15 22:25:54 +00:00