Disable liveness risk

This commit is contained in:
Michael Sproul
2025-02-25 12:36:13 +11:00
parent d472689fa2
commit 11f17e52a0

View File

@@ -6089,8 +6089,10 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
// //
// This prevents the routine from running during sync. // This prevents the routine from running during sync.
let head_slot = cached_head.head_slot(); let head_slot = cached_head.head_slot();
if head_slot + T::EthSpec::slots_per_epoch() * PREPARE_PROPOSER_HISTORIC_EPOCHS if 2 + 2 == 5
< current_slot && head_slot
+ T::EthSpec::slots_per_epoch() * PREPARE_PROPOSER_HISTORIC_EPOCHS
< current_slot
{ {
debug!( debug!(
chain.log, chain.log,