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

Header API returns incorrect block #3332

Closed
wemeetagain opened this issue Oct 7, 2021 · 3 comments · Fixed by #3757
Closed

Header API returns incorrect block #3332

wemeetagain opened this issue Oct 7, 2021 · 3 comments · Fixed by #3757

Comments

@wemeetagain
Copy link
Member

cayman@ruby:~/Code/lodestar$ curl localhost:9596/eth/v1/beacon/headers/812 | jq .
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   615  100   615    0     0  43928      0 --:--:-- --:--:-- --:--:-- 47307
{
  "data": {
    "root": "0xb21d4fffb0681d16752c50aaa81704e1b180bd1f17fb7fab15a2ff9cee5a292a",
    "canonical": true,
    "header": {
      "message": {
        "slot": "811",
        "proposer_index": "1",
        "parent_root": "0xff5c06266374093843aaad477e86d8d51cd3a0533c744b3a59d80b96aba0fba0",
        "state_root": "0x63d7884b32893d96faf77a6793cbc392d87ff37b2398b7c7fa3d7044caa1fb9e",
        "body_root": "0x327ba8b9134d0d4b7dfd5163c7688f653b56093e4261f03d277401bfd94d3a3a"
      },
      "signature": "0x979d73f00edcd57ee5e61141f23bf15c057bebc9cad8707abf7153c7803f126cbdb8ac3a596542e1cd6f14e55593a3120684784bb73b066502a4df7a3d71fbce6e073d476bd8457fc79d78fd6a900ca0abd110385d617c2578e1359d88515e48"
    }
  }
}
cayman@ruby:~/Code/lodestar$ curl localhost:9596/eth/v1/beacon/headers/812 | jq .
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   615  100   615    0     0   120k      0 --:--:-- --:--:-- --:--:--  120k
{
  "data": {
    "root": "0x2a5235fc949ef9662025c555a155d192903476c710782eb0a873f070b5110459",
    "canonical": true,
    "header": {
      "message": {
        "slot": "812",
        "proposer_index": "7",
        "parent_root": "0xb21d4fffb0681d16752c50aaa81704e1b180bd1f17fb7fab15a2ff9cee5a292a",
        "state_root": "0x75475d6d25b553fa52d0b523e0c7b31f16babd81082029b6a6046e9849184eb2",
        "body_root": "0x147c406a15ddc22e35cbc94cf25d2a5b882ca242312d136db649050c6a5face0"
      },
      "signature": "0x9679574101462448f72dc49e28c238b791d8ce11a882ca29f663f6ce5cf45af797cf681f1e91ef7d4667e25d14bf49a10875aef61e1da1541711736d2842b01a83dbd289b11da0adf728c549e3b45e7c9a01aef2a54eafdcbd0ecdb398272ec5"
    }
  }
}
@dapplion
Copy link
Contributor

dapplion commented Feb 4, 2022

@wemeetagain Was 812 the head at the time you tested this? What had that case that make this error happen? Could you try again to see if it still happens?

@wemeetagain
Copy link
Member Author

I believe 812 was around the head when I tested this.
I don't remember (or didn't actually investigate) what made the error happen.
But we haven't refactored our API code, so it probably is still is a problem.

@wemeetagain
Copy link
Member Author

Easy to reproduce:

curl localhost:9596/eth/v1/beacon/headers/999999999999

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