Skip to content

Commit

Permalink
engineapi: Only update req root for pectra+ (#12194)
Browse files Browse the repository at this point in the history
Cherry pick #11467

Co-authored-by: Somnath <snb895@outlook.com>
  • Loading branch information
2 people authored and AskAlexSharov committed Oct 21, 2024
1 parent 03199b3 commit 7b454c8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions turbo/engineapi/engine_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,10 @@ func (s *EngineServer) newPayload(ctx context.Context, req *engine_types.Executi
requests = append(requests, req.DepositRequests.Requests()...)
requests = append(requests, req.WithdrawalRequests.Requests()...)
requests = append(requests, req.ConsolidationRequests.Requests()...)
}

if requests != nil {
rh := types.DeriveSha(requests)
header.RequestsRoot = &rh
if requests != nil {
rh := types.DeriveSha(requests)
header.RequestsRoot = &rh
}
}

if version <= clparams.CapellaVersion {
Expand Down

0 comments on commit 7b454c8

Please sign in to comment.