diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 0f18ac7833be..3e4ebb522a4a 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -54,7 +54,7 @@ jobs: - name: Golangci-lint uses: golangci/golangci-lint-action@v5 with: - version: v1.55.2 + version: v1.56.1 args: --config=.golangci.yml --out-${NO_FUTURE}format colored-line-number build: diff --git a/.golangci.yml b/.golangci.yml index b2fb5ee8e9df..2b97b973fa4c 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -73,6 +73,7 @@ linters: - promlinter - protogetter - revive + - spancheck - staticcheck - stylecheck - tagalign diff --git a/beacon-chain/core/peerdas/helpers.go b/beacon-chain/core/peerdas/helpers.go index 07dc7256cf5a..efdc2d83f62a 100644 --- a/beacon-chain/core/peerdas/helpers.go +++ b/beacon-chain/core/peerdas/helpers.go @@ -206,7 +206,7 @@ func populateAndFilterIndices(indices map[uint64]bool, blobCount uint64) []uint6 // If no indices are provided, provide all blobs. if len(indices) == 0 { for i := range blobCount { - indices[uint64(i)] = true + indices[i] = true } } @@ -317,7 +317,7 @@ func Blobs(indices map[uint64]bool, dataColumnsSidecar []*ethpb.DataColumnSideca } blobSidecar := ðpb.BlobSidecar{ - Index: uint64(blobIndex), + Index: blobIndex, Blob: blob[:], KzgCommitment: blobKZGCommitment[:], KzgProof: blobKzgProof[:],