-
Notifications
You must be signed in to change notification settings - Fork 1.7k
RPC missing mixHash
and nonce
fields in Header responses
#8841
Comments
mixHash
field in Header responsesmixHash
and nonce
fields in Header responses
edit: you're talking about the header:
Can you point me to the source document where it states that this RPC should return it? For the record: {
"jsonrpc": "2.0",
"result": {
"author": "0x007733a1fe69cf3f2cf989f81c7b4cac1693387a",
"difficulty": "0xfffffffffffffffffffffffffffffffe",
"extraData": "0xd583010a068650617269747986312e32362e31826c69",
"gasLimit": "0x79f37d",
"gasUsed": "0x41cfa",
"hash": "0xba66a7a3371062f5265039dbf8cd0d6cae00836ad87bff4549311ca96b6705a3",
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080001000000000020000000000000000000000000000000000000000000",
"miner": "0x007733a1fe69cf3f2cf989f81c7b4cac1693387a",
"number": "0x742153",
"parentHash": "0x1bb362a835a24627246b10e5146900a801ea0ca685ce664ced7c0257904e66bc",
"receiptsRoot": "0xcec7ab613d5c2d38802e9c38e7a6c6af0f9987500c6a67a25e38204818b40ad4",
"sealFields": ["0x8416c698d4", "0xb841aeee675bcd99558e108e2abefcec192463a46deb06725d5039f20f4b106a0e266d4ccb8ee134bfac9972cd10653887214713267afb0f470cbf384a1158e6d8b800"],
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"signature": "aeee675bcd99558e108e2abefcec192463a46deb06725d5039f20f4b106a0e266d4ccb8ee134bfac9972cd10653887214713267afb0f470cbf384a1158e6d8b800",
"size": "0x6f8",
"stateRoot": "0x80b5ca154f42e24844996c5407c23f894e094be0f59c2bcd47d95dc52a2e8108",
"step": "382114004",
"timestamp": "0x5b1a6350",
"totalDifficulty": "0x71de44000000000000000000000004851c3702",
"transactions": [{
"blockHash": "0xba66a7a3371062f5265039dbf8cd0d6cae00836ad87bff4549311ca96b6705a3",
"blockNumber": "0x742153",
"chainId": null,
"condition": null,
"creates": null,
"from": "0x0011a6fc5bd53fd8e2f5b6c7c123629ef9185362",
"gas": "0x4ef93",
"gasPrice": "0xdf8475800",
"hash": "0x12f6069821549820965b66a277507247783edb11c744baba61b1918ada8eda08",
"input": "0x2c10e90c00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000240000000000000000000000000000000000000000000000000000000000000000f000000000000000000000000a27af8713623fcc239d49108b1a7b187c133e88b000000000000000000000000dc5fc5dab642f688bc5bb58bef6e0d452d7ae12300000000000000000000000071be1386ec4d6d780b208529abc349ee69c241cd00000000000000000000000082789d9a0951974e58ebb91df13b84424e51acc4000000000000000000000000560848c7a470b9aa87f7283fdb31bd67737716600000000000000000000000008925daf23ad19c68ff317038c6c6018cfbb7070400000000000000000000000047eb525440e976387b80b41cb22cf4dc0a7e9db0000000000000000000000000e67e7ce765b67aa1dcd731458ed50c04bfc78d7400000000000000000000000089c6dd6a72e2e5838b1cfdc1059dad22ce4b6a4b000000000000000000000000fdbe0d69a110d1f0dc6aec8588804da88173b8f0000000000000000000000000b04985bfab8550c43c00528d9d06492916cb9df600000000000000000000000019044ff4c8f00b16ab660407abfffac8fd1ce83300000000000000000000000030c64c8d3e985d91f9c1efaf4ccde66b2925ea7c00000000000000000000000046c4b65f40f686c3f3738395c36acea70c06f3c2000000000000000000000000e6b8dc9357b42fa67a0ac9bdee59d4b6ebe11406000000000000000000000000000000000000000000000000000000000000000f0000000000000000000000000000000000000000000000000de0b6b3a764000000000000000000000000000000000000000000000000000000ed27d2729e070000000000000000000000000000000000000000000000000012208a9134e8b2000000000000000000000000000000000000000000000000000005ec7ca0b6fd00000000000000000000000000000000000000000000000000001094250242bf0000000000000000000000000000000000000000000000000000076909d5d36e00000000000000000000000000000000000000000000000000000197f665a87b000000000000000000000000000000000000000000000000000000000010713f4f0000000000000000000000000000000000000000000000000197018e7029ac0000000000000000000000000000000000000000000000000000414c2bf7269c000000000000000000000000000000000000000000000000000001e6159843ea0000000000000000000000000000000000000000000000000000e235aa5f86f2000000000000000000000000000000000000000000000000000000c37ea4e88f000000000000000000000000000000000000000000000000000007f06bfafc9a0000000000000000000000000000000000000000000000001fd25ea81f7f011c00",
"nonce": "0xee4",
"publicKey": "0x6a2fb6b38904021713b70aed45886792608014b8f498557a5a8596e91227bc931b4a8390a0037d1d74b6a17b4b045ab4601aad74eadee81710a2e681177c0849",
"r": "0x7b43bb33b83e627bc67bad9c55eeb13f3ddada35d6c7d48403788a943fc9bac2",
"raw": "0xf904ad820ee4850df84758008304ef93947d8a7b8c59af9a86bbab3e0daa171930fa857e8980b904442c10e90c00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000240000000000000000000000000000000000000000000000000000000000000000f000000000000000000000000a27af8713623fcc239d49108b1a7b187c133e88b000000000000000000000000dc5fc5dab642f688bc5bb58bef6e0d452d7ae12300000000000000000000000071be1386ec4d6d780b208529abc349ee69c241cd00000000000000000000000082789d9a0951974e58ebb91df13b84424e51acc4000000000000000000000000560848c7a470b9aa87f7283fdb31bd67737716600000000000000000000000008925daf23ad19c68ff317038c6c6018cfbb7070400000000000000000000000047eb525440e976387b80b41cb22cf4dc0a7e9db0000000000000000000000000e67e7ce765b67aa1dcd731458ed50c04bfc78d7400000000000000000000000089c6dd6a72e2e5838b1cfdc1059dad22ce4b6a4b000000000000000000000000fdbe0d69a110d1f0dc6aec8588804da88173b8f0000000000000000000000000b04985bfab8550c43c00528d9d06492916cb9df600000000000000000000000019044ff4c8f00b16ab660407abfffac8fd1ce83300000000000000000000000030c64c8d3e985d91f9c1efaf4ccde66b2925ea7c00000000000000000000000046c4b65f40f686c3f3738395c36acea70c06f3c2000000000000000000000000e6b8dc9357b42fa67a0ac9bdee59d4b6ebe11406000000000000000000000000000000000000000000000000000000000000000f0000000000000000000000000000000000000000000000000de0b6b3a764000000000000000000000000000000000000000000000000000000ed27d2729e070000000000000000000000000000000000000000000000000012208a9134e8b2000000000000000000000000000000000000000000000000000005ec7ca0b6fd00000000000000000000000000000000000000000000000000001094250242bf0000000000000000000000000000000000000000000000000000076909d5d36e00000000000000000000000000000000000000000000000000000197f665a87b000000000000000000000000000000000000000000000000000000000010713f4f0000000000000000000000000000000000000000000000000197018e7029ac0000000000000000000000000000000000000000000000000000414c2bf7269c000000000000000000000000000000000000000000000000000001e6159843ea0000000000000000000000000000000000000000000000000000e235aa5f86f2000000000000000000000000000000000000000000000000000000c37ea4e88f000000000000000000000000000000000000000000000000000007f06bfafc9a0000000000000000000000000000000000000000000000001fd25ea81f7f011c001ca07b43bb33b83e627bc67bad9c55eeb13f3ddada35d6c7d48403788a943fc9bac2a03f9d5e4c193bd5523e2071d0a997f8c221d2cb529cdca620b1d707cfad1303a5",
"s": "0x3f9d5e4c193bd5523e2071d0a997f8c221d2cb529cdca620b1d707cfad1303a5",
"standardV": "0x1",
"to": "0x7d8a7b8c59af9a86bbab3e0daa171930fa857e89",
"transactionIndex": "0x0",
"v": "0x1c",
"value": "0x0"
}],
"transactionsRoot": "0x2c76a4849e37e25c0efb23fd410202f04316f6ae1c233f48879295f55eac7e76",
"uncles": []
},
"id": 1
}
|
Here the ethclient parses the response: And here is the parsing of I don't say either side is wrong about what should be returned. I'm just observing that ethclient is not working with Parity. When I reported this first to the go-ethereum project in ethereum/go-ethereum#3230, I got told it was Parity that was not implementing it correctly. Which lead to #3148. |
(Unrelated, I patched another incompatibility in ethclient recently: ethereum/go-ethereum#16924) |
Issue Status: 1. Open 2. Started 3. Submitted 4. Done This issue now has a funding of 0.45 ETH (240.73 USD @ $534.95/ETH) attached to it.
|
Has this been fixed already, or am I missing something? I seem to see both mixHash and nonce fields getting returned. On the latest master branch I am getting this:
|
Your totally right @mttmartin these fields make no sense on PoA as there is no mining involved. I missed it. |
Issue Status: 1. Open 2. Cancelled The funding of 0.45 ETH (205.84 USD @ $457.43/ETH) attached to this issue has been cancelled by the bounty submitter
|
Heya @Tbaut - I would love to create a more graceful handling for this condition on the go-ethereum client side and wanted to ask about implementation suggestions. Rinkeby example
Kovan example (infura)
Kovan example (local node)
|
Let me ping @debris who can answer that better than me :) |
Before filing a new issue, please provide the following information.
I use the Go ethclient package to interface with the Parity RPC. When calling
eth_getBlockByNumber
, it complaints about missing themixHash
andnonce
fields.The same issue was reported before (~2 years ago), and then supposedly fixed: #3148
The text was updated successfully, but these errors were encountered: