diff --git a/go.mod b/go.mod index d3d7b93..dc246b1 100644 --- a/go.mod +++ b/go.mod @@ -79,4 +79,5 @@ require ( ) // This version points to Lightclient's prague-devnet-0 branch. +//nolint:gomoddirectives replace github.com/ethereum/go-ethereum => github.com/lightclient/go-ethereum v1.10.10-0.20240429213339-9b7958ba0063 diff --git a/utils/utils.go b/utils/utils.go index 3fab817..e198d39 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -105,6 +105,8 @@ func DecodeJSON(r io.Reader, dst any) error { } // PayloadToPayloadHeader converts an ExecutionPayload to ExecutionPayloadHeader +// +// nolint:cyclop func PayloadToPayloadHeader(payload *api.VersionedExecutionPayload) (*api.VersionedExecutionPayloadHeader, error) { if payload == nil { return nil, ErrNilPayload @@ -341,6 +343,8 @@ func deriveWithdrawalRequestsRoot(withdrawalRequests []*electra.ExecutionLayerWi } // ComputeBlockHash computes the block hash for a given execution payload. +// +// nolint:cyclop func ComputeBlockHash(payload *api.VersionedExecutionPayload, parentBeaconRoot *phase0.Root) (phase0.Hash32, error) { switch payload.Version { case spec.DataVersionBellatrix: