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

[Merged by Bors] - Quote integers in sync committee contributions #2515

Closed
wants to merge 1 commit into from

Conversation

michaelsproul
Copy link
Member

Issue Addressed

Closes #2514

Additional Info

I've verified that the API now behaves correctly on altair-devnet-3

@michaelsproul michaelsproul added ready-for-review The code is ready for review low-hanging-fruit Easy to resolve, get it before someone else does! v1.5.0 For inclusion in v1.5.0 release labels Aug 17, 2021
@michaelsproul
Copy link
Member Author

Script for checking the fix (pardon my fish)

#!/usr/bin/env fish

set -x head_block (curl "http://localhost:5052/eth/v1/beacon/blocks/head")

set -x slot (math (echo $head_block | jq ".data.message.slot | tonumber") - 1)
set -x root (echo $head_block | jq .data.message.parent_root | string unescape)

curl -v "http://localhost:5052/eth/v1/validator/sync_committee_contribution?slot=$slot&subcommittee_index=0&beacon_block_root=$root"

Response now looks like this:

{
  "data": {
    "slot": "39314",
    "beacon_block_root": "0x1db7ec90d59c37bb5bf7b3a59d4bf08fbdbc3afc8ca09c2205310436a4dd8e21",
    "subcommittee_index": "0",
    "aggregation_bits": "0x1b6ef9d9ffe6fbf5bf5f867f4fb79ffb",
    "signature": "0xaf8a20f6df3a7105ada47d90315de3fe5a0fa436ed730189e36e553f3d46c7f26a4fc364e79c543cd93df1e17ba799f10080df46e1d72640747b9ff2316baefd6c84d2980d795dbd52cbd828ec8ba7a4c58015ee2ef58839d554c4abb8967a8b"
  }

@michaelsproul michaelsproul changed the title Quote integers in sync committee contribution Quote integers in sync committee contributions Aug 17, 2021
Copy link
Member

@paulhauner paulhauner left a comment

Choose a reason for hiding this comment

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

Looks good!

@michaelsproul
Copy link
Member Author

Thank you!

bors r+

@michaelsproul michaelsproul added ready-for-merge This PR is ready to merge. and removed ready-for-review The code is ready for review labels Aug 17, 2021
bors bot pushed a commit that referenced this pull request Aug 17, 2021
## Issue Addressed

Closes #2514

## Additional Info

I've verified that the API now behaves correctly on altair-devnet-3
@bors bors bot changed the title Quote integers in sync committee contributions [Merged by Bors] - Quote integers in sync committee contributions Aug 17, 2021
@bors bors bot closed this Aug 17, 2021
@michaelsproul michaelsproul deleted the sync-committee-api branch August 17, 2021 04:55
pawanjay176 pushed a commit to pawanjay176/lighthouse that referenced this pull request Aug 27, 2021
## Issue Addressed

Closes sigp#2514

## Additional Info

I've verified that the API now behaves correctly on altair-devnet-3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
low-hanging-fruit Easy to resolve, get it before someone else does! ready-for-merge This PR is ready to merge. v1.5.0 For inclusion in v1.5.0 release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants