mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-21 06:48:27 +00:00
Include head_payload_status in ForkChoiceView comparison
The early exit check in recompute_head_at_slot compared only head_block_root and checkpoints. When on_execution_payload changed the payload status from Empty to Full without changing the head root, the CachedHead was not updated. Add head_payload_status to ForkChoiceView so the change is detected.
This commit is contained in:
@@ -608,6 +608,7 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
|
||||
// was last run.
|
||||
let old_view = ForkChoiceView {
|
||||
head_block_root: old_cached_head.head_block_root(),
|
||||
head_payload_status: old_cached_head.head_payload_status(),
|
||||
justified_checkpoint: old_cached_head.justified_checkpoint(),
|
||||
finalized_checkpoint: old_cached_head.finalized_checkpoint(),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user