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

"blockHash" parameter for the filter used by "eth_newFilter" should be camel cased #1540

Closed
ilkecan opened this issue Nov 9, 2020 · 4 comments
Assignees
Labels
bug Something isn't working P3 Medium (ex: JSON-RPC request not working with a specific client library due to loose spec assumtion) TeamRevenant GH issues worked on by Revenant Team

Comments

@ilkecan
Copy link

ilkecan commented Nov 9, 2020

Currently, Besu expects "blockhash" (lower cased) as a parameter but it should be "blockHash" (camel cased) to be EIP-234 compliant.

For example, this request returns 400 Bad Request with message "Invalid params":

{
  "method": "eth_getLogs",
  "params": [{
    "blockHash": "0x7844f51cd4899fbea6b31373f11a30de2bb99d2df59c2b774684f2e04455b839",
    "address": "0xd7ede5868287411d3e197719dd5f98b74871b3fd",
    "topics":["0x8cbec4f9f4b9f9a2a9f96d2f1ba00d16b99b8c0962c1396768bb32b5eddd8e73"]
  }],
  "id":48,
  "jsonrpc":"2.0"
}

And the same request with the "blockHash" replaced with "blockhash" returns 200 OK.

besu --version
besu/v20.10.0/linux-x86_64/oracle_openjdk-java-11
@RatanRSur RatanRSur added bug Something isn't working P3 Medium (ex: JSON-RPC request not working with a specific client library due to loose spec assumtion) labels Nov 9, 2020
@macfarla macfarla self-assigned this Nov 12, 2020
@macfarla
Copy link
Contributor

Forthcoming release of jackson 2.12 will enable setting of "case insensitive" on the property which would make this a one line change

See FasterXML/jackson-databind#1886

RC was released yesterday https://github.com/FasterXML/jackson-databind/releases/tag/jackson-databind-2.12.0-rc2

@macfarla
Copy link
Contributor

Moving to blocked and hoping that Jackson 2.12 fixes the problem soon

@timbeiko timbeiko added the TeamRevenant GH issues worked on by Revenant Team label Nov 16, 2020
@macfarla
Copy link
Contributor

This annotation is not going to be supported at property level (only class level). So need to solve another way.

@macfarla
Copy link
Contributor

@JsonAlias is what I've been looking for!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P3 Medium (ex: JSON-RPC request not working with a specific client library due to loose spec assumtion) TeamRevenant GH issues worked on by Revenant Team
Projects
None yet
Development

No branches or pull requests

4 participants