Skip to content
Merged
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: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
dev:

1.39.1:
- refactor sync committee to use slot endpoint rather than epoch query param

1.39.0:
- support Fulu

Expand Down
8 changes: 6 additions & 2 deletions cmd/synccommittee/members/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,13 @@ func process(ctx context.Context, data *dataIn) (*dataOut, error) {
return nil, err
}

state := "head"
if data.epoch != "" {
slot := data.chainTime.FirstSlotOfEpoch(epoch)
state = fmt.Sprintf("%d", slot)
}
syncCommitteeResponse, err := data.eth2Client.(eth2client.SyncCommitteesProvider).SyncCommittee(ctx, &api.SyncCommitteeOpts{
State: "head",
Epoch: &epoch,
State: state,
})
if err != nil {
return nil, errors.Wrap(err, "failed to obtain sync committee information")
Expand Down
2 changes: 1 addition & 1 deletion cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (

// ReleaseVersion is the release version of the codebase.
// Usually overridden by tag names when building binaries.
var ReleaseVersion = "local build (latest release 1.39.0)"
var ReleaseVersion = "local build (latest release 1.39.1)"

// versionCmd represents the version command.
var versionCmd = &cobra.Command{
Expand Down
Loading