From fbb968029354f119d0626a9be4bd42484b2c653d Mon Sep 17 00:00:00 2001 From: terence tsao Date: Mon, 25 Sep 2023 07:20:27 -0700 Subject: [PATCH] Specify errors --- .../prysm/v1alpha1/validator/proposer_execution_payload.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }