Skip to content

Commit

Permalink
removed unused check in forkchoice (#12893)
Browse files Browse the repository at this point in the history
  • Loading branch information
eastorski authored Nov 29, 2024
1 parent 05bfe7b commit d1954a6
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions turbo/execution/eth1/forkchoice.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d1954a6

Please sign in to comment.