ethermint icon indicating copy to clipboard operation
ethermint copied to clipboard

RPC eth_getBlockByHash&eth_getBlockByNumber return inappropriate value type of difficulty/totalDifficulty

Open banishee opened this issue 4 years ago • 1 comments

System info: [Include Ethermint commit, operating system name, and other relevant details]

Steps to reproduce:

  1. The value of difficulty or totalDifficulty fetched from eth_getBlockByHash and eth_getBlockByNumber is 0, not 0x0 https://github.com/cosmos/ethermint/blob/fae8147352e65b86f0755a081f3b59b1e25d48bf/rpc/types/utils.go#L174 https://github.com/cosmos/ethermint/blob/fae8147352e65b86f0755a081f3b59b1e25d48bf/rpc/types/utils.go#L175

Expected behavior: [What you expected to happen]

  • These api should return "0x0". It is better for developers from the ethereum community to resolve this hex value.

Actual behavior: [What actually happened]

Additional info: [Include gist of relevant config, logs, etc.]

banishee avatar Feb 17 '21 09:02 banishee

This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Apr 04 '21 00:04 github-actions[bot]