lighthouse/beacon_node/store/src
Michael Sproul 10945e0619 Revert bad blocks on missed fork (#2529)
## Issue Addressed

Closes #2526

## Proposed Changes

If the head block fails to decode on start up, do two things:

1. Revert all blocks between the head and the most recent hard fork (to `fork_slot - 1`).
2. Reset fork choice so that it contains the new head, and all blocks back to the new head's finalized checkpoint.

## Additional Info

I tweaked some of the beacon chain test harness stuff in order to make it generic enough to test with a non-zero slot clock on start-up. In the process I consolidated all the various `new_` methods into a single generic one which will hopefully serve all future uses 🤞
2021-08-30 06:41:31 +00:00
..
impls Altair consensus changes and refactors (#2279) 2021-07-09 06:15:32 +00:00
chunked_iter.rs Make key value storage abstractions more accurate (#1267) 2020-06-16 11:34:04 +10:00
chunked_vector.rs Altair consensus changes and refactors (#2279) 2021-07-09 06:15:32 +00:00
config.rs Refine compaction (#1916) 2020-11-17 09:10:53 +00:00
errors.rs Use the database to persist the pubkey cache (#2234) 2021-03-04 01:25:12 +00:00
forwards_iter.rs Altair consensus changes and refactors (#2279) 2021-07-09 06:15:32 +00:00
garbage_collection.rs Compact database on finalization (#1871) 2020-11-09 07:02:21 +00:00
hot_cold_store.rs Revert bad blocks on missed fork (#2529) 2021-08-30 06:41:31 +00:00
impls.rs Altair consensus changes and refactors (#2279) 2021-07-09 06:15:32 +00:00
iter.rs Revert bad blocks on missed fork (#2529) 2021-08-30 06:41:31 +00:00
leveldb_store.rs update dependencies (#2032) 2020-12-07 08:20:33 +00:00
lib.rs Rust 1.54.0 lints (#2483) 2021-07-30 01:11:47 +00:00
memory_store.rs Compact database on finalization (#1871) 2020-11-09 07:02:21 +00:00
metadata.rs [Altair] Sync committee pools (#2321) 2021-07-15 00:52:02 +00:00
metrics.rs Implement slasher (#1567) 2020-11-23 03:43:22 +00:00
partial_beacon_state.rs [Altair] Sync committee pools (#2321) 2021-07-15 00:52:02 +00:00