diff --git a/beacon-chain/rpc/prysm/v1alpha1/validator/proposer_execution_payload.go b/beacon-chain/rpc/prysm/v1alpha1/validator/proposer_execution_payload.go index 5713f63b9ff2..07e9e2a57698 100644 --- a/beacon-chain/rpc/prysm/v1alpha1/validator/proposer_execution_payload.go +++ b/beacon-chain/rpc/prysm/v1alpha1/validator/proposer_execution_payload.go @@ -287,7 +287,7 @@ func (vs *Server) getParentBlockHash(ctx context.Context, st state.BeaconState, func getParentBlockHashPostCapella(st state.BeaconState) ([]byte, error) { header, err := st.LatestExecutionPayloadHeader() if err != nil { - return nil, err + return nil, errors.Wrap(err, "could not get post capella payload header") } return header.BlockHash(), nil } @@ -296,7 +296,7 @@ func getParentBlockHashPostCapella(st state.BeaconState) ([]byte, error) { func getParentBlockHashPostMerge(st state.BeaconState) ([]byte, error) { header, err := st.LatestExecutionPayloadHeader() if err != nil { - return nil, err + return nil, errors.Wrap(err, "could not get post merge payload header") } return header.ParentHash(), nil }