Hello,
I am currently running a newHeads subscription on the kovan network
XXXXX-Jee$ wscat -c wss://kovan.infura.io/ws
connected (press CTRL+C to quit)
> {"id": 1, "method": "eth_subscribe", "params": ["newHeads"]}
< {"jsonrpc":"2.0","method":"eth_subscription","params":{"result":{"author":"0x00a0a24b9f0e5ec7aa4c7389b8302fd0123194de","difficulty":"0xfffffffffffffffffffffffffffffffc","extraData":"0xde830202078f5061726974792d457468657265756d86312e33312e31826c69","gasLimit":"0x7a1200","gasUsed":"0x2bdaf0","hash":"0x3e1527497799c36a2a5979996590c35ea3327785dcad9c42f17d7263e6b27f2c","logsBloom":"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","miner":"0x00a0a24b9f0e5ec7aa4c7389b8302fd0123194de","number":"0x9be620","parentHash":"0x9c7f21b2c5edf682d45b2f89890e4bbd28b574bdd18ca88eb4d537c714ac7adc","receiptsRoot":"0xf562f8a55ebefc25412e64e049d302e0941ef43deed1655ac81f0cb726e6c887","sealFields":["0x1713e6ae","0xaa4528ef0c2b404ead84737b944372a710469bd0d1180509c1ad9fc99f098bcb2e0de5f45d9cdc59a201060435b213772a8bd1cdd0b4577bfcef978840bd5a0801"],"sha3Uncles":"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347","signature":"aa4528ef0c2b404ead84737b944372a710469bd0d1180509c1ad9fc99f098bcb2e0de5f45d9cdc59a201060435b213772a8bd1cdd0b4577bfcef978840bd5a0801","size":"0x24a","stateRoot":"0x7c8196ac997deea571fc8df56d729d8f70d2aafedb0fb15beb6f76c1a10927a6","step":"387180206","timestamp":"0x5c4f9ab8","transactionsRoot":"0x5b8991f92f90eac19ac60682420925aeee17d2671eb343024e18f59425aeec1f"},"subscription":"0x4bce26303bb7265b"}}
< {"jsonrpc":"2.0","method":"eth_subscription","params":{"result":{"author":"0x0020ee4be0e2027d76603cb751ee069519ba81a1","difficulty":"0xfffffffffffffffffffffffffffffffb","extraData":"0xde830203008f5061726974792d457468657265756d86312e33312e31826c69","gasLimit":"0x7a1200","gasUsed":"0x50f656","hash":"0x0538a12781006bafb5823e81cfac91150ede62ed305e2a9695da0958575ec7a7","logsBloom":"0x00000000002000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000","miner":"0x0020ee4be0e2027d76603cb751ee069519ba81a1","number":"0x9be621","parentHash":"0x3e1527497799c36a2a5979996590c35ea3327785dcad9c42f17d7263e6b27f2c","receiptsRoot":"0x774469c24ad8d167b3d97cb77d529c4206d538fdaf62dd5ed61ede07462d0578","sealFields":["0x1713e6b2","0x43c2317c83b71b9bd00512a9bc0ca4884f467de78de0cb2e571a48e10671ccbc51a416b3014d1dcb0f2c36fa3244053bb7f8f6534e7607e2f3e38003b4d2b23601"],"sha3Uncles":"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347","signature":"43c2317c83b71b9bd00512a9bc0ca4884f467de78de0cb2e571a48e10671ccbc51a416b3014d1dcb0f2c36fa3244053bb7f8f6534e7607e2f3e38003b4d2b23601","size":"0x24a","stateRoot":"0x0fb2e704dd4124672cedb9effa8dc60d86c11101bc2f3aefadf5f17a0fc73cdc","step":"387180210","timestamp":"0x5c4f9ac8","transactionsRoot":"0x0e1b62258abaef03c9e0c60482ae716003376b48e0a55b5f33bb0245c8fc662c"},"subscription":"0x4bce26303bb7265b"}}
< {"jsonrpc":"2.0","method":"eth_subscription","params":{"result":{"author":"0x0010f94b296a852aaac52ea6c5ac72e03afd032d","difficulty":"0xfffffffffffffffffffffffffffffffe","extraData":"0xde830202078f5061726974792d457468657265756d86312e33312e31826c69","gasLimit":"0x7a1200","gasUsed":"0x10ca7b","hash":"0xd12e8427771a2485988db97798a50c96d88571672f38e2cbad1ed5145d0a401b","logsBloom":"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","miner":"0x0010f94b296a852aaac52ea6c5ac72e03afd032d","number":"0x9be622","parentHash":"0x0538a12781006bafb5823e81cfac91150ede62ed305e2a9695da0958575ec7a7","receiptsRoot":"0xd6c36336640b5ed591262389a9591f373e6e2bbbbac7d21f5ae87a22cb2eca07","sealFields":["0x1713e6b3","0xa0c666f51b4a512c9aa0dbe43a2142a6d69b41407b8dc43ce18f2d95ee1d88554c9346cd0e5489d95b4c6dbb5e3f312645f18a8684f292f5ae8a110aeac2948a01"],"sha3Uncles":"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347","signature":"a0c666f51b4a512c9aa0dbe43a2142a6d69b41407b8dc43ce18f2d95ee1d88554c9346cd0e5489d95b4c6dbb5e3f312645f18a8684f292f5ae8a110aeac2948a01","size":"0x24a","stateRoot":"0x83fa40b3a1f43b77c322d6692c57189bda7b5e8aaf58563a2f26ca6cc1e3d00e","step":"387180211","timestamp":"0x5c4f9acc","transactionsRoot":"0xe16b8786a4866bc175627f142a1a4482f80367cc4ec18c1723d8d135c95c6458"},"subscription":"0x4bce26303bb7265b"}}
< {"jsonrpc":"2.0","method":"eth_subscription","params":{"result":{"author":"0x007733a1fe69cf3f2cf989f81c7b4cac1693387a","difficulty":"0xfffffffffffffffffffffffffffffffe","extraData":"0xde830203008f5061726974792d457468657265756d86312e33312e31826c69","gasLimit":"0x7a1200","gasUsed":"0xf3748","hash":"0x072a16dd26bfb8c073fbb2789a60fffdf4b7b5abfd0c2d1a046a1c766402406a","logsBloom":"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","miner":"0x007733a1fe69cf3f2cf989f81c7b4cac1693387a","number":"0x9be623","parentHash":"0xd12e8427771a2485988db97798a50c96d88571672f38e2cbad1ed5145d0a401b","receiptsRoot":"0x3ba6d2ea1043d4cfcd41eb0321829f9465b9ab931407d373885e2d3447914e85","sealFields":["0x1713e6b4","0xddf5b27caea63d0bff302958b04df0b99e607cd371e5b03410c25cb8d5157e6667e6f544098313dd81897a98dc2f1e4b634d1842f12adddfa3e66ce56d4a6bbc00"],"sha3Uncles":"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347","signature":"ddf5b27caea63d0bff302958b04df0b99e607cd371e5b03410c25cb8d5157e6667e6f544098313dd81897a98dc2f1e4b634d1842f12adddfa3e66ce56d4a6bbc00","size":"0x24a","stateRoot":"0x1200455d5fe22db7c92b98d265a1a0588220c8737930d84831e24d8a31584a68","step":"387180212","timestamp":"0x5c4f9ad0","transactionsRoot":"0x5befa1bdd0df3f06ed20b5b9a9e6fe726e4e037e42c72c976835b49afa0a4fb3"},"subscription":"0x4bce26303bb7265b"}}
as you can see from the results, the hashes are mapping up correctly
the first 3 blocks from subscription:
“number”:“0x9be620”,
“hash”:“0x3e1527497799c36a2a5979996590c35ea3327785dcad9c42f17d7263e6b27f2c”,
“parentHash”:"0x9c7f21b2c5edf682d45b2f89890e4bbd28b574bdd18ca88eb4d537c714ac7adc”
“number”:“0x9be621”,
“hash”:“0x0538a12781006bafb5823e81cfac91150ede62ed305e2a9695da0958575ec7a7”
“parentHash”:“0x3e1527497799c36a2a5979996590c35ea3327785dcad9c42f17d7263e6b27f2c”
“number”:“0x9be622”,
“hash”:“0xd12e8427771a2485988db97798a50c96d88571672f38e2cbad1ed5145d0a401b”
“parentHash”:“0x0538a12781006bafb5823e81cfac91150ede62ed305e2a9695da0958575ec7a7”
are you running the currently a newHeads subscription and they are not matching up, or are you referring to when you were getting the results above? I will try and check throughout the day, but the random times I have check today, they all seem to match up. (as mentioned by mike, in the case of a reorg, you will not receive the reorg’d block, so in case the multiple blocks have reorgs in a row, you will not get matching hashes)