lighthouse/beacon_node
Paul Hauner e4fa7d906f Fix post-merge checkpoint sync (#3065)
## Issue Addressed

This address an issue which was preventing checkpoint-sync.

When the node starts from checkpoint sync, the head block and the finalized block are the same value. We did not respect this when sending a `forkchoiceUpdated` (fcU) call to the EL and were expecting fork choice to hold the *finalized ancestor of the head* and returning an error when it didn't.

This PR uses *only fork choice* for sending fcU updates. This is actually quite nice and avoids some atomicity issues between `chain.canonical_head` and `chain.fork_choice`. Now, whenever `chain.fork_choice.get_head` returns a value we also cache the values required for the next fcU call.

## TODO

- [x] ~~Blocked on #3043~~
- [x] Ensure there isn't a warn message at startup.
2022-03-10 06:05:24 +00:00
..
beacon_chain Fix post-merge checkpoint sync (#3065) 2022-03-10 06:05:24 +00:00
client Fix UnableToReadSlot at startup (#3066) 2022-03-09 23:04:19 +00:00
eth1 Update to Rust 1.59 and 2021 edition (#3038) 2022-02-25 00:10:17 +00:00
execution_layer Prepare proposer (#3043) 2022-03-09 00:42:05 +00:00
genesis Update to Rust 1.59 and 2021 edition (#3038) 2022-02-25 00:10:17 +00:00
http_api Prepare proposer (#3043) 2022-03-09 00:42:05 +00:00
http_metrics Update to Rust 1.59 and 2021 edition (#3038) 2022-02-25 00:10:17 +00:00
lighthouse_network cargo audit updates (#3063) 2022-03-08 19:48:12 +00:00
network Prepare proposer (#3043) 2022-03-09 00:42:05 +00:00
operation_pool Update to Rust 1.59 and 2021 edition (#3038) 2022-02-25 00:10:17 +00:00
src auth for engine api (#3046) 2022-03-08 06:46:24 +00:00
store Update to Rust 1.59 and 2021 edition (#3038) 2022-02-25 00:10:17 +00:00
tests Altair consensus changes and refactors (#2279) 2021-07-09 06:15:32 +00:00
timer Update to Rust 1.59 and 2021 edition (#3038) 2022-02-25 00:10:17 +00:00
Cargo.toml auth for engine api (#3046) 2022-03-08 06:46:24 +00:00