From 027d83b556f492d1e6a884919b358e6846ef2ab1 Mon Sep 17 00:00:00 2001 From: Giulio rebuffo Date: Sun, 28 May 2023 22:48:17 +0200 Subject: [PATCH] Caplin: skip finalized error (#7595) --- cl/phase1/forkchoice/on_block.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cl/phase1/forkchoice/on_block.go b/cl/phase1/forkchoice/on_block.go index b94442354..71a5ffa85 100644 --- a/cl/phase1/forkchoice/on_block.go +++ b/cl/phase1/forkchoice/on_block.go @@ -18,12 +18,12 @@ func (f *ForkChoiceStore) OnBlock(block *cltypes.SignedBeaconBlock, newPayload, return err } if f.Slot() < block.Block.Slot { - return fmt.Errorf("block is too late compared to current_slot") + return fmt.Errorf("block is too early compared to current_slot") } // Check that block is later than the finalized epoch slot (optimization to reduce calls to get_ancestor) finalizedSlot := f.computeStartSlotAtEpoch(f.finalizedCheckpoint.Epoch()) if block.Block.Slot <= finalizedSlot { - return fmt.Errorf("block is too late compared to finalized") + return nil } config := f.forkGraph.Config()