lighthouse-pulse/beacon_node
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
..
beacon_chain Revert bad blocks on missed fork (#2529) 2021-08-30 06:41:31 +00:00
client Upgrade dependencies (#2513) 2021-08-17 01:00:24 +00:00
eth1 Improve eth1 fallback logging (#2490) 2021-08-30 00:51:26 +00:00
eth2_libp2p Expand gossip duplicate cache time (#2542) 2021-08-26 23:25:50 +00:00
genesis Upgrade dependencies (#2513) 2021-08-17 01:00:24 +00:00
http_api Fork schedule api (#2525) 2021-08-24 01:36:27 +00:00
http_metrics Upgrade dependencies (#2513) 2021-08-17 01:00:24 +00:00
network Revert bad blocks on missed fork (#2529) 2021-08-30 06:41:31 +00:00
operation_pool Rust 1.54.0 lints (#2483) 2021-07-30 01:11:47 +00:00
src Packet filter cli option (#2523) 2021-08-26 00:29:39 +00:00
store Revert bad blocks on missed fork (#2529) 2021-08-30 06:41:31 +00:00
tests Altair consensus changes and refactors (#2279) 2021-07-09 06:15:32 +00:00
timer Upgrade dependencies (#2513) 2021-08-17 01:00:24 +00:00
websocket_server Server sent events (#1920) 2020-12-04 00:18:58 +00:00
Cargo.toml Add more unix signal handlers (#2486) 2021-08-30 05:19:34 +00:00