{"action":"opened","issue":{"url":"https://api.github.com/repos/paritytech/parity/issues/6587","repository_url":"https://api.github.com/repos/paritytech/parity","labels_url":"https://api.github.com/repos/paritytech/parity/issues/6587/labels{/name}","comments_url":"https://api.github.com/repos/paritytech/parity/issues/6587/comments","events_url":"https://api.github.com/repos/paritytech/parity/issues/6587/events","html_url":"https://github.com/paritytech/parity/issues/6587","id":260284191,"number":6587,"title":"Geth and parity disagree on correct gasValue of mined block","user":{"login":"edevil","id":12426,"avatar_url":"https://avatars0.githubusercontent.com/u/12426?v=4","gravatar_id":"","url":"https://api.github.com/users/edevil","html_url":"https://github.com/edevil","followers_url":"https://api.github.com/users/edevil/followers","following_url":"https://api.github.com/users/edevil/following{/other_user}","gists_url":"https://api.github.com/users/edevil/gists{/gist_id}","starred_url":"https://api.github.com/users/edevil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edevil/subscriptions","organizations_url":"https://api.github.com/users/edevil/orgs","repos_url":"https://api.github.com/users/edevil/repos","events_url":"https://api.github.com/users/edevil/events{/privacy}","received_events_url":"https://api.github.com/users/edevil/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-25T13:51:16Z","updated_at":"2017-09-25T13:51:16Z","closed_at":null,"author_association":"NONE","body":"> I'm running:\r\n>\r\n> - **Parity version**: 1.7.2\r\n> - **Operating system**: Linux\r\n> - **And installed**: via binaries\r\n\r\n_Your issue description goes here below. Try to include **actual** vs. **expected behavior** and **steps to reproduce** the issue._\r\n\r\n---\r\n\r\nI have a testnet with several geth nodes, which are mining, and a parity node which is not mining. This has been running fine for some months but yesterday the parity node stopped syncing the block chain due to a disagreement with the gasValue of a mined block:\r\n\r\n```\r\n2017-09-24 22:27:10 UTC Stage 5 block verification failed for #415756 (79ff…3b70)\r\nError: Block(InvalidGasUsed(Mismatch { expected: 10944, found: 13444 }))\r\n```\r\n\r\nThe block in question:\r\n```\r\n> eth.getBlock(415756, true)\r\n{\r\n  difficulty: 1673216,\r\n  extraData: \"0xd783010600846765746887676f312e382e31856c696e7578\",\r\n  gasLimit: 4712388,\r\n  gasUsed: 10944,\r\n  hash: \"0x79ff4377b3f696db4da1985c2957df22fbe93cb7fdb65ddc1296ce01339c3b70\",\r\n  logsBloom: \"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\",\r\n  miner: \"0xad94486b5005418dbb46a77eb2fd0c8046bfb858\",\r\n  mixHash: \"0x1a23c9443c078ba33254dbabfc2677e4dfdb662e4214859a5fd04e89fe638068\",\r\n  nonce: \"0x2b04e0bf595fc478\",\r\n  number: 415756,\r\n  parentHash: \"0xde4d58060904a8645166054774be170b2bcd4b078f6c3431fc2b7334710cc748\",\r\n  receiptsRoot: \"0x8832cf7e048b0fd4d9aa0097d631c07fb8b77064f9e74095d89cf8625fde9245\",\r\n  sha3Uncles: \"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347\",\r\n  size: 651,\r\n  stateRoot: \"0x4ace268313b6ad86e290f1984e0882ede0043b5c85b63c73984b9ac06078f20b\",\r\n  timestamp: 1506261859,\r\n  totalDifficulty: 450539221396,\r\n  transactions: [{\r\n      blockHash: \"0x79ff4377b3f696db4da1985c2957df22fbe93cb7fdb65ddc1296ce01339c3b70\",\r\n      blockNumber: 415756,\r\n      from: \"0x6509389cdf535b4652036daf63df63b488e385ce\",\r\n      gas: 32830,\r\n      gasPrice: 21000000000,\r\n      hash: \"0x2a239cd3dcbd6d9dccf6b1d48e5cd7b6e590072383f2d2e5f1358ff23a26cd1a\",\r\n      input: \"0x41c0e1b5\",\r\n      nonce: 5,\r\n      r: \"0x529f9fe89d8f5c67d592b1eeee2d3d52741d0ab2020a9ba9efc8b3594b41df47\",\r\n      s: \"0x9ce1b67014e6bcb9b05b12f39a444ec0f9d1a33a659acf2ad4964650737ab20\",\r\n      to: \"0x977069a679a60cc9981ce569cfb8b7ab707b2023\",\r\n      transactionIndex: 0,\r\n      v: \"0x50eaf88\",\r\n      value: 0\r\n  }],\r\n  transactionsRoot: \"0xe6db10e0f4998ef8c26ae4a07e4a10ed12cc3f84e293606457a107ac209c7612\",\r\n  uncles: []\r\n}\r\n```\r\n\r\nGeth 1.6.x genesis block:\r\n```\r\n{\r\n  \"alloc\": {\r\n    \"ad94486b5005418dbb46a77eb2fd0c8046bfb858\": {\r\n      \"balance\": \"1000000000000000000000000000000\"\r\n    }\r\n  },\r\n  \"config\": {\r\n    \"homesteadBlock\": 0,\r\n    \"chainID\": 42424242,\r\n    \"eip155Block\": 0,\r\n    \"eip158Block\": 0\r\n  },\r\n  \"nonce\": \"0x0000000000000042\",\r\n  \"difficulty\": \"0x6666\",\r\n  \"mixhash\": \"0x0000000000000000000000000000000000000000000000000000000000000000\",\r\n  \"coinbase\": \"0x0000000000000000000000000000000000000000\",\r\n  \"timestamp\": \"0x00\",\r\n  \"parentHash\": \"0x0000000000000000000000000000000000000000000000000000000000000000\",\r\n  \"extraData\": \"0x11bbe8db4e347b4e8c937c1c8370e4b5ed33adb3db69cbdb7a38e1e50b1b82fa\",\r\n  \"gasLimit\": \"0x4c4b40\"\r\n}\r\n```\r\n\r\nParity chain configuration:\r\n```\r\n{\r\n  \"name\": \"GethTranslation\",\r\n  \"engine\": {\r\n    \"Ethash\": {\r\n      \"params\": {\r\n        \"gasLimitBoundDivisor\": \"0x400\",\r\n        \"minimumDifficulty\": \"0x20000\",\r\n        \"difficultyBoundDivisor\": \"0x800\",\r\n        \"durationLimit\": \"0xd\",\r\n        \"blockReward\": \"0x4563918244F40000\",\r\n        \"registrar\": \"0x81a4b044831c4f12ba601adb9274516939e9b8a2\",\r\n        \"homesteadTransition\": 0,\r\n        \"eip150Transition\": 0,\r\n        \"eip155Transition\": 0,\r\n        \"eip160Transition\": 0,\r\n        \"eip161abcTransition\": 0,\r\n        \"eip161dTransition\": 0\r\n      }\r\n    }\r\n  },\r\n  \"params\": {\r\n    \"accountStartNonce\": \"0x0\",\r\n    \"maximumExtraDataSize\": \"0x20\",\r\n    \"minGasLimit\": \"0x1388\",\r\n    \"networkID\": 42424242,\r\n    \"eip98Transition\": 9223372036854775807\r\n  },\r\n  \"genesis\": {\r\n    \"seal\": {\r\n      \"ethereum\": {\r\n        \"nonce\": \"0x0000000000000042\",\r\n        \"mixHash\": \"0x0000000000000000000000000000000000000000000000000000000000000000\"\r\n      }\r\n    },\r\n    \"difficulty\": \"0x6666\",\r\n    \"author\": \"0x0000000000000000000000000000000000000000\",\r\n    \"timestamp\": \"0x00\",\r\n    \"parentHash\": \"0x0000000000000000000000000000000000000000000000000000000000000000\",\r\n    \"extraData\": \"0x11bbe8db4e347b4e8c937c1c8370e4b5ed33adb3db69cbdb7a38e1e50b1b82fa\",\r\n    \"gasLimit\": \"0x4c4b40\"\r\n  },\r\n  \"accounts\": {\r\n    \"ad94486b5005418dbb46a77eb2fd0c8046bfb858\": {\r\n      \"balance\": \"1000000000000000000000000000000\"\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nI have also tried altering the parity param \"eip150Transition\" to \"9223372036854775807\" and the gas calculation is affected, but it still does not match:\r\n```\r\nError: Block(InvalidGasUsed(Mismatch { expected: 10944, found: 10794 }))\r\n```"}}
{"actor":{"display_login":"edevil"}}