diff --git a/.golangci.yml b/.golangci.yml index e461ee1b..52baf613 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -19,6 +19,7 @@ linters: - wrapcheck - wsl - musttag + - depguard # # Maybe fix later: diff --git a/go.mod b/go.mod index b46d37fd..9a7d934c 100644 --- a/go.mod +++ b/go.mod @@ -25,9 +25,11 @@ require ( github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 // indirect github.com/consensys/bavard v0.1.13 // indirect github.com/consensys/gnark-crypto v0.12.1 // indirect - github.com/crate-crypto/go-kzg-4844 v0.3.0 // indirect - github.com/ethereum/c-kzg-4844 v0.3.1 // indirect + github.com/crate-crypto/go-ipa v0.0.0-20231025140028-3c0104f4b233 // indirect + github.com/crate-crypto/go-kzg-4844 v0.7.0 // indirect + github.com/ethereum/c-kzg-4844 v0.4.0 // indirect github.com/fatih/color v1.15.0 // indirect + github.com/gballet/go-verkle v0.1.1-0.20231031103413-a67434b50f46 // indirect github.com/getsentry/sentry-go v0.18.0 // indirect github.com/goccy/go-yaml v1.11.2 // indirect github.com/gofrs/flock v0.8.1 // indirect @@ -47,9 +49,9 @@ require ( github.com/rivo/uniseg v0.2.0 // indirect github.com/rogpeppe/go-internal v1.11.0 // indirect github.com/supranational/blst v0.3.11 // indirect - golang.org/x/exp v0.0.0-20230905200255-921286631fa9 // indirect - golang.org/x/sync v0.3.0 // indirect - golang.org/x/text v0.13.0 // indirect + golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa // indirect + golang.org/x/sync v0.5.0 // indirect + golang.org/x/text v0.14.0 // indirect golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect google.golang.org/protobuf v1.30.0 // indirect rsc.io/tmplfunc v0.0.3 // indirect diff --git a/server/service.go b/server/service.go index 5e8cdd2a..29234cfc 100644 --- a/server/service.go +++ b/server/service.go @@ -751,9 +751,9 @@ func (m *BoostService) processDenebPayload(w http.ResponseWriter, req *http.Requ for i, commitment := range commitments { if commitment != blobs.Commitments[i] { log.WithFields(logrus.Fields{ - "requestBlobCommitment": commitment.String(), + "requestBlobCommitment": commitment.String(), "responseBlobCommitment": blobs.Commitments[i].String(), - "index": i, + "index": i, }).Error("requestBlobCommitment does not equal responseBlobCommitment") return } diff --git a/server/service_test.go b/server/service_test.go index 25f4aaeb..72bcfade 100644 --- a/server/service_test.go +++ b/server/service_test.go @@ -225,7 +225,7 @@ func TestStatus(t *testing.T) { rr := backend.request(t, http.MethodGet, path, nil) require.Equal(t, http.StatusOK, rr.Code) - require.True(t, len(rr.Header().Get("X-MEVBoost-Version")) > 0) + require.Greater(t, len(rr.Header().Get("X-MEVBoost-Version")), 0) //nolint:testifylint require.Equal(t, 1, backend.relays[0].GetRequestCount(path)) }) @@ -237,7 +237,7 @@ func TestStatus(t *testing.T) { rr := backend.request(t, http.MethodGet, path, nil) require.Equal(t, http.StatusServiceUnavailable, rr.Code) - require.True(t, len(rr.Header().Get("X-MEVBoost-Version")) > 0) + require.Greater(t, len(rr.Header().Get("X-MEVBoost-Version")), 0) //nolint:testifylint require.Equal(t, 0, backend.relays[0].GetRequestCount(path)) }) }