lighthouse/beacon_node/beacon_chain
realbigsean c4ad0e3fb3 Ensure dependent root consistency in head events (#2753)
## Issue Addressed

@paulhauner noticed that when we send head events, we use the block root from `new_head` in `fork_choice_internal`, but calculate `dependent_root` and `previous_dependent_root` using the `canonical_head`. This is normally fine because `new_head` updates the `canonical_head` in `fork_choice_internal`, but it's possible we have a reorg updating `canonical_head` before our head events are sent. So this PR ensures `dependent_root` and `previous_dependent_root` are always derived from the state associated with `new_head`.



Co-authored-by: realbigsean <seananderson33@gmail.com>
2021-11-02 02:26:32 +00:00
..
src Ensure dependent root consistency in head events (#2753) 2021-11-02 02:26:32 +00:00
tests Add BeaconChainHarness::builder (#2707) 2021-10-14 02:58:10 +00:00
Cargo.toml Add test_logger as feature to logging (#2586) 2021-10-06 00:46:07 +00:00