From d1954a6e0c0a270bdf8d8f6c0dbcf22160ec56e8 Mon Sep 17 00:00:00 2001 From: Ostroukhov Nikita Date: Fri, 29 Nov 2024 15:09:42 +0000 Subject: [PATCH] removed unused check in forkchoice (#12893) --- turbo/execution/eth1/forkchoice.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/turbo/execution/eth1/forkchoice.go b/turbo/execution/eth1/forkchoice.go index 92844d9836a..a7d1bf0563e 100644 --- a/turbo/execution/eth1/forkchoice.go +++ b/turbo/execution/eth1/forkchoice.go @@ -280,15 +280,6 @@ func (e *EthereumExecutionModule) updateForkChoice(ctx context.Context, original return } - // If we don't have it, too bad - if fcuHeader == nil { - sendForkchoiceReceiptWithoutWaiting(outcomeCh, &execution.ForkChoiceReceipt{ - LatestValidHash: gointerfaces.ConvertHashToH256(common.Hash{}), - Status: execution.ExecutionStatus_MissingSegment, - }, false) - return - } - currentParentHash := fcuHeader.ParentHash currentParentNumber := fcuHeader.Number.Uint64() - 1 isCanonicalHash, err := e.isCanonicalHash(ctx, tx, currentParentHash)