You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
eth_getBlockByHash output is the same as eth_getBlockByNumber output when the block/hashes are the same block
Actual behaviour
eth_getBlockByHash returns with the miner field populated, instead of 0x0000000000000000000000000000000000000000
Steps to reproduce the behaviour
# Set your node URL
NODE=http://localhost:8545
# Get the block hash of 0x3d146d3
curl -s -H 'Content-Type: application/json'$NODE -d '{"jsonrpc":"2.0","id":1,"method":"eth_getBlockByNumber","params":["0x3d146d3",false]}'| jq '.result.hash'"0x8d7953e6bc4c154e1b4561554effa23f17850829bdfb755d7ff6aa2b30232dc4"# Check the miner field of 0x3d146d3
curl -s -H 'Content-Type: application/json'$NODE -d '{"jsonrpc":"2.0","id":1,"method":"eth_getBlockByNumber","params":["0x3d146d3",false]}'| jq '.result.miner'"0x0000000000000000000000000000000000000000"# Check the miner field of 0x3d146d3, but this time using the hash
curl -s -H 'Content-Type: application/json'$NODE -d '{"jsonrpc":"2.0","id":1,"method":"eth_getBlockByHash","params":["0x8d7953e6bc4c154e1b4561554effa23f17850829bdfb755d7ff6aa2b30232dc4",false]}'| jq '.result.miner'"0x794e44d1334a56fea7f4df12633b88820d0c5888"
As you can see, the miner field is wrong for eth_getBlockByHash
The text was updated successfully, but these errors were encountered:
System information
Erigon version:
erigon/2.60.9/linux-amd64/go1.22.8
Chain/Network:
bor-mainnet
(matic)Expected behaviour
eth_getBlockByHash
output is the same aseth_getBlockByNumber
output when the block/hashes are the same blockActual behaviour
eth_getBlockByHash
returns with theminer
field populated, instead of0x0000000000000000000000000000000000000000
Steps to reproduce the behaviour
As you can see, the miner field is wrong for
eth_getBlockByHash
The text was updated successfully, but these errors were encountered: