Skip to content

Commit

Permalink
fix(cannon): Swap state id when fetching duties (#352)
Browse files Browse the repository at this point in the history
* feat(cannon): Canonical Beacon Committees

* feat(cannon): Canonical Beacon Committees

* Update deploy/migrations/clickhouse/045_canonical_beacon_committee.up.sql

Co-authored-by: Andrew Davis <[email protected]>
Signed-off-by: Sam Calder-Mason <[email protected]>

* fix: Update beacon committee fetch call arguments

---------

Signed-off-by: Sam Calder-Mason <[email protected]>
Co-authored-by: Andrew Davis <[email protected]>
  • Loading branch information
samcm and Savid authored Jul 24, 2024
1 parent 5931041 commit 4864fcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cannon/ethereum/services/duties.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func (m *DutiesService) FetchBeaconCommittee(ctx context.Context, stateID string

m.log.WithField("epoch", epoch).Debug("Fetching beacon committee")

committees, err := m.beacon.FetchBeaconCommittees(ctx, xatuethv1.EpochAsString(epoch), nil)
committees, err := m.beacon.FetchBeaconCommittees(ctx, xatuethv1.StateIDFinalized, &epoch)
if err != nil {
m.log.WithError(err).Error("Failed to fetch beacon committees")

Expand Down

0 comments on commit 4864fcd

Please sign in to comment.