Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync committee duties improvements&fixes #839

Merged
merged 28 commits into from
Feb 8, 2023

Conversation

olegshmuelov
Copy link
Contributor

No description provided.

@olegshmuelov olegshmuelov self-assigned this Feb 7, 2023
beacon/goclient/duties.go Outdated Show resolved Hide resolved
beacon/goclient/duties.go Outdated Show resolved Hide resolved
operator/duties/controller.go Show resolved Hide resolved
operator/duties/controller.go Outdated Show resolved Hide resolved
protocol/v2/blockchain/beacon/network.go Show resolved Hide resolved
protocol/v2/blockchain/beacon/network.go Show resolved Hide resolved
@@ -12,7 +10,7 @@ import (
func (gc *goClient) GetSyncMessageBlockRoot(slot phase0.Slot) (phase0.Root, error) {
// Wait a 1/3 into the slot.
gc.waitOneThirdOrValidBlock(slot)
root, err := gc.client.BeaconBlockRoot(gc.ctx, fmt.Sprint(slot))
root, err := gc.client.BeaconBlockRoot(gc.ctx, "head")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@olegshmuelov how does this change affect? passing head vs slot

Copy link
Contributor Author

@olegshmuelov olegshmuelov Feb 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if there is no block yet we will get an error
- could not start duty: failed to get sync committee block root: root is nil

operator/duties/controller.go Show resolved Hide resolved
operator/duties/controller.go Outdated Show resolved Hide resolved
@liorrutenberg liorrutenberg merged commit b73d487 into stage Feb 8, 2023
@liorrutenberg liorrutenberg deleted the os/sync-committee-duties branch February 8, 2023 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants