From 65aaf4878c731e63ae7cfda87cfda4eb8ff1ccb2 Mon Sep 17 00:00:00 2001 From: kasey <489222+kasey@users.noreply.github.com> Date: Thu, 24 Aug 2023 21:57:51 -0500 Subject: [PATCH] Nishant's feedback, consistent tmp var (#12805) Co-authored-by: Kasey Kirkham --- beacon-chain/execution/engine_client.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/beacon-chain/execution/engine_client.go b/beacon-chain/execution/engine_client.go index 68dc4544c..9886e43ec 100644 --- a/beacon-chain/execution/engine_client.go +++ b/beacon-chain/execution/engine_client.go @@ -730,11 +730,11 @@ func (s *Service) retrievePayloadsFromExecutionHashes( if b == nil { return nil, fmt.Errorf("received nil payload body for request by hash %#x", executionHashes[sliceIdx]) } - header, err := blindedBlocks[realIdx].Block().Body().Execution() + header, err := bblock.Block().Body().Execution() if err != nil { return nil, err } - payload, err = fullPayloadFromPayloadBody(header, b, blindedBlocks[realIdx].Version()) + payload, err = fullPayloadFromPayloadBody(header, b, bblock.Version()) if err != nil { return nil, err } @@ -743,7 +743,7 @@ func (s *Service) retrievePayloadsFromExecutionHashes( if b == nil { return nil, fmt.Errorf("received nil execution block for request by hash %#x", executionHashes[sliceIdx]) } - header, err := blindedBlocks[realIdx].Block().Body().Execution() + header, err := bblock.Block().Body().Execution() if err != nil { return nil, err } @@ -752,7 +752,7 @@ func (s *Service) retrievePayloadsFromExecutionHashes( return nil, err } } - fullBlock, err := blocks.BuildSignedBeaconBlockFromExecutionPayload(blindedBlocks[realIdx], payload.Proto()) + fullBlock, err := blocks.BuildSignedBeaconBlockFromExecutionPayload(bblock, payload.Proto()) if err != nil { return nil, err }