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

Lodestar sends engine_getClientVersionV1 request with invalid 4-byte DATA encoding #7217

Closed
tersec opened this issue Nov 5, 2024 · 1 comment · Fixed by #7282
Closed
Labels
meta-bug Issues that identify a bug and require a fix.

Comments

@tersec
Copy link

tersec commented Nov 5, 2024

Describe the bug

Nov  5 16:00:12.488 2024 REQUEST 
{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "engine_getClientVersionV1",
  "params": [
    {
      "code": "LS",
      "name": "Lodestar",
      "version": "v1.22.0/1531b19",
      "commit": "1531b19"
    }
  ]
}

From snooper-engine on [email protected]

https://github.com/ethereum/execution-apis/blob/v1.0.0-beta.4/src/engine/identification.md#clientversionv1 documents that this commit is a

DATA, 4 bytes - first four bytes of the latest commit hash of this build e.g. fa4ff922

And https://github.com/ethereum/execution-apis/blob/v1.0.0-beta.4/src/engine/common.md#encoding specifies that:

Values of a field of DATA type MUST be encoded as a hexadecimal string with a 0x prefix matching the regular expression ^0x(?:[a-fA-F0-9]{2})*$.

Which 1531b19 does not match.

Expected behavior

Use correct DATA encoding

Steps to reproduce

No response

Additional context

No response

Operating system

Linux

Lodestar version or commit hash

Lodestar network=testnet, version=v1.22.0/1531b19, commit=1531b19

@nflaig
Copy link
Member

nflaig commented Dec 5, 2024

@tersec I also noticed when images are build via ethpandaops builder, the commit is only 7 characters. Does this also cause issues for you or was the main problem that we didn't add the 0x-prefix?

I've put up an issue for that as well ethpandaops/eth-client-docker-image-builder#212 but if it causes trouble with nimbusel we might need to look into a workaround in Lodestar for this as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta-bug Issues that identify a bug and require a fix.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants