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()