From 1cc1effd7591ca0cc1f793251aeae0431aaa14d2 Mon Sep 17 00:00:00 2001 From: Potuz Date: Thu, 21 Mar 2024 14:42:40 -0300 Subject: [PATCH] Revert "pass justified=finalized in Prater (#13695)" (#13709) This reverts commit 102518e1065032accc2825032e40ff06e878fb29. --- beacon-chain/blockchain/service.go | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/beacon-chain/blockchain/service.go b/beacon-chain/blockchain/service.go index a98f8f3f6f10..09d0cce7906d 100644 --- a/beacon-chain/blockchain/service.go +++ b/beacon-chain/blockchain/service.go @@ -290,18 +290,10 @@ func (s *Service) StartFromSavedState(saved state.BeaconState) error { fRoot := s.ensureRootNotZeros(bytesutil.ToBytes32(finalized.Root)) s.cfg.ForkChoiceStore.Lock() defer s.cfg.ForkChoiceStore.Unlock() - if params.BeaconConfig().ConfigName != params.PraterName { - if err := s.cfg.ForkChoiceStore.UpdateJustifiedCheckpoint(s.ctx, &forkchoicetypes.Checkpoint{Epoch: justified.Epoch, - Root: bytesutil.ToBytes32(justified.Root)}); err != nil { - return errors.Wrap(err, "could not update forkchoice's justified checkpoint") - } - } else { - if err := s.cfg.ForkChoiceStore.UpdateJustifiedCheckpoint(s.ctx, &forkchoicetypes.Checkpoint{Epoch: finalized.Epoch, - Root: bytesutil.ToBytes32(finalized.Root)}); err != nil { - return errors.Wrap(err, "could not update forkchoice's justified checkpoint") - } + if err := s.cfg.ForkChoiceStore.UpdateJustifiedCheckpoint(s.ctx, &forkchoicetypes.Checkpoint{Epoch: justified.Epoch, + Root: bytesutil.ToBytes32(justified.Root)}); err != nil { + return errors.Wrap(err, "could not update forkchoice's justified checkpoint") } - if err := s.cfg.ForkChoiceStore.UpdateFinalizedCheckpoint(&forkchoicetypes.Checkpoint{Epoch: finalized.Epoch, Root: bytesutil.ToBytes32(finalized.Root)}); err != nil { return errors.Wrap(err, "could not update forkchoice's finalized checkpoint")