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_getBlockByNumber with params":["0x0",false]" returns an error #1922

Closed
oleksandrSydorenkoJ opened this issue Jun 12, 2024 · 2 comments · Fixed by #1923
Closed

eth_getBlockByNumber with params":["0x0",false]" returns an error #1922

oleksandrSydorenkoJ opened this issue Jun 12, 2024 · 2 comments · Fixed by #1923
Assignees
Labels
bug Something isn't working
Milestone

Comments

@oleksandrSydorenkoJ
Copy link

Version
skalenetwork/schain:3.19.0-beta.1

Preconditions
Active schain medium type

Steps to reproduce:

  1. Send eth_getBlockByNumber with params":["0x0",false]" request to schain
curl http://localhost:10003   -X POST   -H "Content-Type: application/json"   --data '{"id":7,"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["0", false]}' 
  1. Check the response
  2. Check the skaled logs

Expected state:
Skaled should return the genesis block

Actual state:
Skaled return the Error: INVALID_PARAMS: Invalid method parameters (invalid name and/or type) recognised error

{"error":{"code":-32602,"data":null,"message":"INVALID_PARAMS: Invalid method parameters (invalid name and/or type) recognised"},"id":7,"jsonrpc":"2.0"}
@DmytroNazarenko
Copy link
Collaborator

skaled: 3.19.0-beta.2

@oleksandrSydorenkoJ
Copy link
Author

Verified on regression network
numb-heavy-sadalachbia
skaled: 3.19.0-beta.2

curl http://95.179.187.71:10323    -X POST   -H "Content-Type: application/json"   --data '{"id":7,"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["0", false]}'

{"id":7,"jsonrpc":"2.0","result":{"author":"0x0000000000000000000000000000000000000000","boundary":"0x0000000000000000000000000000000000000000000000000000000000000000","difficulty":"0x0","extraData":"0x11bbe8db4e347b4e8c937c1c8370e4b5ed33adb3db69cbdb7a38e1e50b1b82fa","gasLimit":"0xfffffff","gasUsed":"0x0","hash":"0x28e07f346c28a837dfd2897ce70c8500de6e67ddbc33cb5b9cd720fff4aeb598","logsBloom":"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","miner":"0x0000000000000000000000000000000000000000","mixHash":"0x0000000000000000000000000000000000000000000000000000000000000000","nonce":"0x0000000000000042","number":"0x0","parentHash":"0x0000000000000000000000000000000000000000000000000000000000000000","receiptsRoot":"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421","seedHash":"0x0000000000000000000000000000000000000000000000000000000000000000","sha3Uncles":"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347","size":"0x219","stateRoot":"0x66687aadf862bd776c8fc18b8e9f8e20089714856ee233b3902a591d0d5f2925","timestamp":"0x0","totalDifficulty":"0x0","transactions":[],"transactionsRoot":"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421","uncles":[]}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants