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

/eth/v1/validator/duties/sync/ not returning sync committee data #9749

Closed
mcdee opened this issue Oct 7, 2021 · 0 comments · Fixed by #9767
Closed

/eth/v1/validator/duties/sync/ not returning sync committee data #9749

mcdee opened this issue Oct 7, 2021 · 0 comments · Fixed by #9767
Assignees

Comments

@mcdee
Copy link
Contributor

mcdee commented Oct 7, 2021

🐞 Bug Report

Description

/eth/v1/validator/duties/sync/<epoch> is not returning data about sync committee membership.

Has this worked before in a previous version?

No.

🔬 Minimal Reproduction

curl -s -H 'Content-type: application/json' --data '["71042","1"]' http://localhost:3501/eth/v1/validator/duties/sync/44504  | jq .

🔥 Error


{
  "data": [
    {
      "pubkey": "0xb88260f48d2d10d5f0ece23dcf05318804522740023c7f3948ec9a97159a1d0dcbb24590a42563b423ae9bea96525a05",
      "validator_index": "71042",
      "validator_sync_committee_indices": []
    },
    {
      "pubkey": "0xaffc434cf8138634a4cd0ef6cb815febd3db25760b1b6c522f9b4aa78e599b60336d7dd2e953192e45d4ac91f66f0723",
      "validator_index": "1",
      "validator_sync_committee_indices": []
    }
  ]
}

There are two errors here:

  • validator index 1 does not have a sync committee membership in the given period. As such, no data at all should be returned for it
  • validator index 71042 does have a sync committee membership in the given period. As such, its index should show up in the validator_sync_committee_indices field.

So the output should be


{
  "data": [
    {
      "pubkey": "0xb88260f48d2d10d5f0ece23dcf05318804522740023c7f3948ec9a97159a1d0dcbb24590a42563b423ae9bea96525a05",
      "validator_index": "71042",
      "validator_sync_committee_indices": [
        "1"
      ]
    }
  ]
}

🌍 Your Environment

develop on prater.

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 a pull request may close this issue.

2 participants