-
Notifications
You must be signed in to change notification settings - Fork 533
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
Block miner hash value always 0x0 in eth_getBlockBy*
jsonrpc response
#112
Comments
@dankostiuk The consensus used currently in polygon-sdk is IBFT, which is implemented according to ethereum/EIPs#650 which in turn builds upon the voting mechanism explained in Clique PoA: ethereum/EIPs#225 Looking at the EIP-225 (Clique PoA), this is the relevant part that explains what the
thus, you can see that the The information about the proposer of the block can be found by recovering the pubkey from the Seal field of the RLP encoded Istanbul extra data field in the block headers. |
…ng logic (#112) * Introduce ECDSAKey and decouple from ethgo transactions signing logic * Fix panic in e2e test(s) * Fix checkpoint manager unit tests * Try to fix extract signature failure * Change signature of sign callback function * Use the latest signer in the tx relayer * Minor fixes * Fix panic when unsigned transaction is sent to txrelayer * Instantiate LondonOrBerlin signer in the TestCluster.SendTxn * Minor change * Lint fix * Build fixes * Add log to tx pool * Typo fix and small simplification * Build fix * callback function fix * rebase fixes * lint fix * fixes for e2e * migration test fix * transactionWithHeaderInstructions fix * Fix linters * Fix linter (uncapitalize param name) * Remove debug log * Adapt the unit test * Merge fix * Fix TestE2E_JsonRPC_NewEthClient * Lint fix * comment fix * lint fix * test fix * one more transaction contructor --------- Co-authored-by: Dusan Nosovic <[email protected]>
Block miner hash value always 0x0 in
eth_getBlockBy*
jsonrpc responseDescription
According to https://eth.wiki/json-rpc/API#eth_getBlockByHash, the miner hash should be "the address of the beneficiary to whom the mining rewards were given" (or the address of the block's validator).
Using either the
dev
orserver
command - and tested on botheth_getBlockByNumber
andeth_getBlockByHash
, I always see the miner value being:I expect the miner value to be one of the validator's addresses.
Your environment
OSX 11.4
develop
Steps to reproduce
./main server...
and ensure all 4 nodes have visibility of eachother:{"id":1,"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["latest", true]}
Expected behaviour
I expect the miner value to be one of the validator's addresses. In my example above running 4 validators, I expect the miner hash to be the address of one of those 4 validators.
Actual behaviour
I always see the HTTP response containing:
which makes it difficult to determine who mined the block.
The text was updated successfully, but these errors were encountered: