Skip to content

eth_getBlockByNumber does not return compatible response to geth when v,r,s are null #4948

@PeaStew

Description

@PeaStew

System information

v2022.07.04

Polygon blockchain in this case but I suspect the issue is wide spread

Expected behaviour

In response to this call

{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["0xE4E1C0", true],"id":1}

The last response should be, if queried on Geth :

{ "blockHash": "0x2176fb1693c51cb956b68599b8f7705fd51be138ea43a71f7e3d3bc31fae4e7d", "blockNumber": "0xe4e1c0", "from": "0x0000000000000000000000000000000000000000", "gas": "0x0", "gasPrice": "0x0", "hash": "0x04fc48aaf20db66619419222408edfbf642520f7f08af553f180161a63687875", "input": "0x", "nonce": "0x0", "to": "0x0000000000000000000000000000000000000000", "transactionIndex": "0x184", "value": "0x0", "type": "0x0", "chainId": "0x0", "v": "0x0", "r": "0x0", "s": "0x0" }

Actual behaviour

Response is:

{ "blockHash": "0x2176fb1693c51cb956b68599b8f7705fd51be138ea43a71f7e3d3bc31fae4e7d", "blockNumber": "0xe4e1c0", "from": "0x0000000000000000000000000000000000000000", "gas": "0x0", "gasPrice": "0x0", "hash": "0x04fc48aaf20db66619419222408edfbf642520f7f08af553f180161a63687875", "input": "0x", "nonce": "0x0", "to": "0x0000000000000000000000000000000000000000", "transactionIndex": "0x184", "value": "0x0", "type": "0x0", "chainId": "0x0", "v": null, "r": null, "s": null }

Steps to reproduce the behaviour

query {"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["0xE4E1C0", true],"id":1} on polygon mainnet

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions