aurora-is-near / aurora-relayer

[DEPRECATED] Web3-compatible relayer server for Aurora.
https://aurora-is-near.github.io/aurora-relayer/
Creative Commons Zero v1.0 Universal
26 stars 13 forks source link

Add `mixHash` to `eth_getBlockByNumber` output #131

Closed rahul10puchd closed 2 years ago

rahul10puchd commented 2 years ago

This PR is for this issue #54 The main purpose of this pr is to include mixHash enity in the response of eth_getBlockByNumber. http post http://localhost:8545 jsonrpc=2.0 id=1 method=eth_getBlockByNumber params:='["73429683"]'

{
    "id": "1",
    "jsonrpc": "2.0",
    "result": {
        "difficulty": "0x0",
        "extraData": "0x",
        "gasLimit": "0x0",
        "gasUsed": "0x0",
        "hash": "0x4f547bf73900f58328b6da64e82099ecdcc331062486c228c363e97c48fa82c4",
        "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
        "miner": "0x0000000000000000000000000000000000000000",
        "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
        "nonce": "0x0000000000000000",
        "number": "0x46072b3",
        "parentHash": "0x884b132d54830c13a987b5f182e23e26973e319393bbef5b0f70fd4fb863a885",
        "receiptsRoot": "0x3d94b31b19c4a191ea5e4fd33ad94cba56ebf74dcc6d8564bf89933ce222b59f",
        "sha3Uncles": "0x0000000000000000000000000000000000000000000000000000000000000000",
        "size": "0x8b6d",
        "stateRoot": "0x67c375d37fabc6a28a6a7952b21170d12e922d720173ad379f2d032f1f24cb85",
        "timestamp": "0x61a7275c",
        "totalDifficulty": "0x0",
        "transactions": [],
        "transactionsRoot": "0x50ae6dca7cc0014767708eb28f3e41cae8c5bc37bbad24eba08d9d4923ab9c78",
        "uncles": []
    }
}
joshuajbouw commented 2 years ago

In the code it returns empty bytes, but why is the example return not empty bytes?