lighthouse/beacon_node/store/src
Paul Hauner 1f8c17b530 Fork choice modifications and cleanup (#3962)
## Issue Addressed

NA

## Proposed Changes

- Implements https://github.com/ethereum/consensus-specs/pull/3290/
- Bumps `ef-tests` to [v1.3.0-rc.4](https://github.com/ethereum/consensus-spec-tests/releases/tag/v1.3.0-rc.4).

The `CountRealizedFull` concept has been removed and the `--count-unrealized-full` and `--count-unrealized` BN flags now do nothing but log a `WARN` when used.

## Database Migration Debt

This PR removes the `best_justified_checkpoint` from fork choice. This field is persisted on-disk and the correct way to go about this would be to make a DB migration to remove the field. However, in this PR I've simply stubbed out the value with a junk value. I've taken this approach because if we're going to do a DB migration I'd love to remove the `Option`s around the justified and finalized checkpoints on `ProtoNode` whilst we're at it. Those options were added in #2822 which was included in Lighthouse v2.1.0. The options were only put there to handle the migration and they've been set to `Some` ever since v2.1.0. There's no reason to keep them as options anymore.

I started adding the DB migration to this branch but I started to feel like I was bloating this rather critical PR with nice-to-haves. I've kept the partially-complete migration [over in my repo](https://github.com/paulhauner/lighthouse/tree/fc-pr-18-migration) so we can pick it up after this PR is merged.
2023-03-21 07:34:41 +00:00
..
impls Clean capella (#4019) 2023-03-01 03:19:02 +00:00
chunk_writer.rs Implement checkpoint sync (#2244) 2021-09-22 00:37:28 +00:00
chunked_iter.rs Add configurable block replayer (#2863) 2021-12-21 06:30:52 +00:00
chunked_vector.rs add historical summaries (#3865) 2023-01-11 12:40:21 +11:00
config.rs Clean capella (#4019) 2023-03-01 03:19:02 +00:00
errors.rs Fix Capella schema downgrades (#4004) 2023-02-20 17:50:42 +11:00
forwards_iter.rs Add configurable block replayer (#2863) 2021-12-21 06:30:52 +00:00
garbage_collection.rs Compact database on finalization (#1871) 2020-11-09 07:02:21 +00:00
hot_cold_store.rs Clean capella (#4019) 2023-03-01 03:19:02 +00:00
impls.rs Separate execution payloads in the DB (#3157) 2022-05-12 00:42:17 +00:00
iter.rs Fix lints for Rust 1.63 (#3459) 2022-08-12 00:56:39 +00:00
leveldb_store.rs Separate execution payloads in the DB (#3157) 2022-05-12 00:42:17 +00:00
lib.rs Clean capella (#4019) 2023-03-01 03:19:02 +00:00
memory_store.rs Initial Commit of Retrospective OTB Verification (#3372) 2022-07-30 00:22:38 +00:00
metadata.rs Fork choice modifications and cleanup (#3962) 2023-03-21 07:34:41 +00:00
metrics.rs Implement slasher (#1567) 2020-11-23 03:43:22 +00:00
partial_beacon_state.rs Clean capella (#4019) 2023-03-01 03:19:02 +00:00
reconstruct.rs Consensus context with proposer index caching (#3604) 2022-10-15 22:25:54 +00:00