Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ go 1.22.0
toolchain go1.23.2

require (
github.com/OffchainLabs/go-bitfield v0.0.0-20251031151322-f427d04d8506
github.com/attestantio/go-eth2-client v0.27.1
github.com/mitchellh/go-homedir v1.1.0
github.com/pkg/errors v0.9.1
github.com/prometheus/client_golang v1.20.5
github.com/prysmaticlabs/go-bitfield v0.0.0-20240618144021-706c95b2dd15
github.com/rs/zerolog v1.33.0
github.com/spf13/pflag v1.0.6
github.com/spf13/viper v1.19.0
Expand Down Expand Up @@ -43,6 +43,7 @@ require (
github.com/prometheus/client_model v0.6.1 // indirect
github.com/prometheus/common v0.62.0 // indirect
github.com/prometheus/procfs v0.15.1 // indirect
github.com/prysmaticlabs/go-bitfield v0.0.0-20240618144021-706c95b2dd15 // indirect
github.com/r3labs/sse/v2 v2.10.0 // indirect
github.com/sagikazarmark/locafero v0.7.0 // indirect
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
github.com/OffchainLabs/go-bitfield v0.0.0-20251031151322-f427d04d8506 h1:d/SJkN8/9Ca+1YmuDiUJxAiV4w/a9S8NcsG7GMQSrVI=
github.com/OffchainLabs/go-bitfield v0.0.0-20251031151322-f427d04d8506/go.mod h1:6TZI4FU6zT8x6ZfWa1J8YQ2NgW0wLV/W3fHRca8ISBo=
github.com/attestantio/go-eth2-client v0.27.1 h1:g7bm+gG/p+gfzYdEuxuAepVWYb8EO+2KojV5/Lo2BxM=
github.com/attestantio/go-eth2-client v0.27.1/go.mod h1:fvULSL9WtNskkOB4i+Yyr6BKpNHXvmpGZj9969fCrfY=
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
Expand Down
2 changes: 1 addition & 1 deletion services/attestations/events/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
"sync"
"time"

bitfield "github.com/OffchainLabs/go-bitfield"
consensusclient "github.com/attestantio/go-eth2-client"
"github.com/attestantio/go-eth2-client/api"
"github.com/attestantio/go-eth2-client/spec"
"github.com/attestantio/go-eth2-client/spec/phase0"
"github.com/pkg/errors"
bitfield "github.com/prysmaticlabs/go-bitfield"
"github.com/rs/zerolog"
zerologger "github.com/rs/zerolog/log"
"github.com/wealdtech/probec/services/chaintime"
Expand Down Expand Up @@ -170,10 +170,10 @@
summary.buckets[address] = buckets
}
if buckets[bucket] == nil {
buckets[bucket] = attestation.AggregationBits

Check failure on line 173 in services/attestations/events/service.go

View workflow job for this annotation

GitHub Actions / lint

cannot use attestation.AggregationBits (variable of slice type "github.com/prysmaticlabs/go-bitfield".Bitlist) as "github.com/OffchainLabs/go-bitfield".Bitlist value in assignment

Check failure on line 173 in services/attestations/events/service.go

View workflow job for this annotation

GitHub Actions / lint

cannot use attestation.AggregationBits (variable of slice type "github.com/prysmaticlabs/go-bitfield".Bitlist) as "github.com/OffchainLabs/go-bitfield".Bitlist value in assignment

Check failure on line 173 in services/attestations/events/service.go

View workflow job for this annotation

GitHub Actions / test

cannot use attestation.AggregationBits (variable of slice type "github.com/prysmaticlabs/go-bitfield".Bitlist) as "github.com/OffchainLabs/go-bitfield".Bitlist value in assignment
} else {
var err error
buckets[bucket], err = buckets[bucket].Or(attestation.AggregationBits)

Check failure on line 176 in services/attestations/events/service.go

View workflow job for this annotation

GitHub Actions / lint

cannot use attestation.AggregationBits (variable of slice type "github.com/prysmaticlabs/go-bitfield".Bitlist) as "github.com/OffchainLabs/go-bitfield".Bitlist value in argument to buckets[bucket].Or) (typecheck)

Check failure on line 176 in services/attestations/events/service.go

View workflow job for this annotation

GitHub Actions / lint

cannot use attestation.AggregationBits (variable of slice type "github.com/prysmaticlabs/go-bitfield".Bitlist) as "github.com/OffchainLabs/go-bitfield".Bitlist value in argument to buckets[bucket].Or (typecheck)

Check failure on line 176 in services/attestations/events/service.go

View workflow job for this annotation

GitHub Actions / test

cannot use attestation.AggregationBits (variable of slice type "github.com/prysmaticlabs/go-bitfield".Bitlist) as "github.com/OffchainLabs/go-bitfield".Bitlist value in argument to buckets[bucket].Or
if err != nil {
s.attestationsMu.Unlock()
log.Error().Err(err).Msg("Failed to aggregate attestations")
Expand Down
Loading