{"action":"created","issue":{"url":"https://api.github.com/repos/ethcore/parity/issues/2794","repository_url":"https://api.github.com/repos/ethcore/parity","labels_url":"https://api.github.com/repos/ethcore/parity/issues/2794/labels{/name}","comments_url":"https://api.github.com/repos/ethcore/parity/issues/2794/comments","events_url":"https://api.github.com/repos/ethcore/parity/issues/2794/events","html_url":"https://github.com/ethcore/parity/issues/2794","id":184499312,"number":2794,"title":"InvalidStateRoot Error on private chain","user":{"login":"iFA88","id":18205395,"avatar_url":"https://avatars.githubusercontent.com/u/18205395?v=3","gravatar_id":"","url":"https://api.github.com/users/iFA88","html_url":"https://github.com/iFA88","followers_url":"https://api.github.com/users/iFA88/followers","following_url":"https://api.github.com/users/iFA88/following{/other_user}","gists_url":"https://api.github.com/users/iFA88/gists{/gist_id}","starred_url":"https://api.github.com/users/iFA88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iFA88/subscriptions","organizations_url":"https://api.github.com/users/iFA88/orgs","repos_url":"https://api.github.com/users/iFA88/repos","events_url":"https://api.github.com/users/iFA88/events{/privacy}","received_events_url":"https://api.github.com/users/iFA88/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-21T14:29:04Z","updated_at":"2016-10-21T14:47:43Z","closed_at":null,"body":"Trying to setup a own chain with geth and parity.\r\nI have successfully created for every client a genesis block below can you find the 0 block details. The hash are matching!\r\nThis 2 client is running on my debian VPS:\r\n```\r\nWelcome to the Geth JavaScript console!\r\n\r\ninstance: Parity//v1.4.0-unstable-5eca5f7-20161019/x86_64-linux-gnu/rustc1.12.0\r\ncoinbase: 0x0000000000000000000000000000000000000000\r\nat block: 0 (Thu, 01 Jan 1970 01:00:00 CET)\r\n modules: eth:1.0 ethcore:1.0 net:1.0 personal:1.0 rpc:1.0 traces:1.0 web3:1.0\r\n\r\n> web3.version\r\n{\r\n  api: \"0.15.3\",\r\n  ethereum: \"63\",\r\n  network: \"33\",\r\n  node: \"Parity//v1.4.0-unstable-5eca5f7-20161019/x86_64-linux-gnu/rustc1.12.0\",\r\n  whisper: undefined,\r\n  getEthereum: function(callback),\r\n  getNetwork: function(callback),\r\n  getNode: function(callback),\r\n  getWhisper: function(callback)\r\n}\r\n> eth.getBlock(0)\r\n{\r\n  author: \"0x0000000000000000000000000000000000000000\",\r\n  difficulty: 0,\r\n  extraData: \"0x\",\r\n  gasLimit: 3141592,\r\n  gasUsed: 0,\r\n  hash: \"0x9f9f6256eeead45bba8e66a8df6466614e783978db40a336af972520f08408a6\",\r\n  logsBloom: \"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\",\r\n  miner: \"0x0000000000000000000000000000000000000000\",\r\n  number: 0,\r\n  parentHash: \"0x0000000000000000000000000000000000000000000000000000000000000000\",\r\n  receiptsRoot: \"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421\",\r\n  sealFields: [\"0x00000000000000000000000000000000000000647572616c65787365646c6578\", \"0x00006d6f7264656e\"],\r\n  sha3Uncles: \"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347\",\r\n  size: 504,\r\n  stateRoot: \"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421\",\r\n  timestamp: 0,\r\n  totalDifficulty: 0,\r\n  transactions: [],\r\n  transactionsRoot: \"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421\",\r\n  uncles: []\r\n}\r\n\r\n> exit\r\n```\r\n\r\n```\r\nWelcome to the Geth JavaScript console!\r\n\r\ninstance: Geth/v1.5.0-unstable-6952fe3a/linux/go1.7\r\ncoinbase: 0x9f416263351ec106a1b5c2ddbea8ab91fce5ef24\r\nat block: 8 (Fri, 21 Oct 2016 15:42:35 CEST)\r\n datadir: /mnt/ethads\r\n modules: admin:1.0 debug:1.0 eth:1.0 miner:1.0 net:1.0 personal:1.0 rpc:1.0 txpool:1.0 web3:1.0\r\n\r\n> web3.version\r\n{\r\n  api: \"0.15.3\",\r\n  ethereum: \"0x3f\",\r\n  network: \"33\",\r\n  node: \"Geth/v1.5.0-unstable-6952fe3a/linux/go1.7\",\r\n  whisper: undefined,\r\n  getEthereum: function(callback),\r\n  getNetwork: function(callback),\r\n  getNode: function(callback),\r\n  getWhisper: function(callback)\r\n}\r\n> eth.getBlock(0)\r\n{\r\n  difficulty: 0,\r\n  extraData: \"0x\",\r\n  gasLimit: 3141592,\r\n  gasUsed: 0,\r\n  hash: \"0x9f9f6256eeead45bba8e66a8df6466614e783978db40a336af972520f08408a6\",\r\n  logsBloom: \"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\",\r\n  miner: \"0x0000000000000000000000000000000000000000\",\r\n  mixHash: \"0x00000000000000000000000000000000000000647572616c65787365646c6578\",\r\n  nonce: \"0x00006d6f7264656e\",\r\n  number: 0,\r\n  parentHash: \"0x0000000000000000000000000000000000000000000000000000000000000000\",\r\n  receiptsRoot: \"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421\",\r\n  sha3Uncles: \"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347\",\r\n  size: 504,\r\n  stateRoot: \"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421\",\r\n  timestamp: 0,\r\n  totalDifficulty: 0,\r\n  transactions: [],\r\n  transactionsRoot: \"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421\",\r\n  uncles: []\r\n}\r\n```\r\nThe connection is in every type enstablished and worked. (desktop geth -> vps geth, dekstop parity -> vps parity, desktop geth -> vps parity, dekstop parity -> vps geth)\r\n\r\nI have mined few block with VPS geth native miner.\r\n\r\nWhen i connect from my desktop PC with Parity TO VPS geth node, then I get this error: \r\n```\r\n2016-10-21 15:55:43  Stage 4 block verification failed for #1 (c3ab…2e9d)\r\nError: Block(InvalidStateRoot(Mismatch { expected: 624de0df944ced0f9ccbbd8426ab66fd7d14e58ac39bab5faeb13b9e17ebb561, found: 56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421 }))\r\n```\r\n\r\nWhen i connect from my desktop PC with Geth TO VPS geth or parity then works great.\r\n\r\nHere is the #1 block:\r\n```\r\n> eth.getBlock(1)\r\n{\r\n  difficulty: 131072,\r\n  extraData: \"0xd583010500846765746885676f312e37856c696e7578\",\r\n  gasLimit: 3144658,\r\n  gasUsed: 0,\r\n  hash: \"0x6be04af6bf11eda2ed8440180145b95e6ab8259166ea4ece4810e845ef9b8785\",\r\n  logsBloom: \"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\",\r\n  miner: \"0xcfe6f15ee9f13da6cfe3fdd04a5435f4747f5331\",\r\n  mixHash: \"0xa6fabd63f7ad8abfedd8398f7e338a6a0aebb09b4a592ca87ed76f5b906e5ba1\",\r\n  nonce: \"0x6ccc879c6cfccad6\",\r\n  number: 1,\r\n  parentHash: \"0x9f9f6256eeead45bba8e66a8df6466614e783978db40a336af972520f08408a6\",\r\n  receiptsRoot: \"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421\",\r\n  sha3Uncles: \"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347\",\r\n  size: 533,\r\n  stateRoot: \"0x94f7b9fa84b6d62dd8044a749b935cb5c9c950c83804c236998d1df6ba4eb1ba\",\r\n  timestamp: 1477059618,\r\n  totalDifficulty: 131072,\r\n  transactions: [],\r\n  transactionsRoot: \"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421\",\r\n  uncles: []\r\n}\r\n```\r\n\r\ngeth genesis.json:\r\n```\r\n{\r\n\t\"nonce\": \"0x00006d6f7264656e\",\r\n\t\"difficulty\": \"0x00000\",\r\n\t\"mixhash\": \"0x00000000000000000000000000000000000000647572616c65787365646c6578\",\r\n\t\"coinbase\": \"0x0000000000000000000000000000000000000000\",\r\n\t\"timestamp\": \"0x00\",\r\n\t\"parentHash\": \"0x0000000000000000000000000000000000000000000000000000000000000000\",\r\n\t\"extraData\": \"0x\",\r\n\t\"gasLimit\": \"0x2FEFD8\",\r\n\t\"alloc\": {\r\n\t}\r\n}\r\n```\r\n\r\nParity genesis.json:\r\n```\r\n{\r\n\t\"name\": \"ethads\",\r\n\t\"engine\": {\r\n\t\t\t\"Null\": null\r\n\t},\r\n\t\"params\": {\r\n\t\t\t\"accountStartNonce\": \"0x0\",\r\n\t\t\t\"maximumExtraDataSize\": \"0x20\",\r\n\t\t\t\"minGasLimit\": \"0x1388\",\r\n\t\t\t\"networkID\" : \"0x21\"\r\n\t},\r\n\t\"genesis\": {\r\n\t\t\t\"seal\": {\r\n\t\t\t\t\t\"ethereum\": {\r\n\t\t\t\t\t\t\t\"nonce\": \"0x00006d6f7264656e\",\r\n\t\t\t\t\t\t\t\"mixHash\": \"0x00000000000000000000000000000000000000647572616c65787365646c6578\"\r\n\t\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"difficulty\": \"0x00000\",\r\n\t\t\t\"author\": \"0x0000000000000000000000000000000000000000\",\r\n\t\t\t\"timestamp\": \"0x00\",\r\n\t\t\t\"parentHash\": \"0x0000000000000000000000000000000000000000000000000000000000000000\",\r\n\t\t\t\"extraData\": \"0x\",\r\n\t\t\t\"gasLimit\": \"0x2fefd8\"\r\n\t},\r\n\t\"accounts\": {\r\n\t}\r\n}\r\n```\r\n\r\nIf anyone need more info ask them."},"comment":{"url":"https://api.github.com/repos/ethcore/parity/issues/comments/255397293","html_url":"https://github.com/ethcore/parity/issues/2794#issuecomment-255397293","issue_url":"https://api.github.com/repos/ethcore/parity/issues/2794","id":255397293,"user":{"login":"arkpar","id":9008569,"avatar_url":"https://avatars.githubusercontent.com/u/9008569?v=3","gravatar_id":"","url":"https://api.github.com/users/arkpar","html_url":"https://github.com/arkpar","followers_url":"https://api.github.com/users/arkpar/followers","following_url":"https://api.github.com/users/arkpar/following{/other_user}","gists_url":"https://api.github.com/users/arkpar/gists{/gist_id}","starred_url":"https://api.github.com/users/arkpar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arkpar/subscriptions","organizations_url":"https://api.github.com/users/arkpar/orgs","repos_url":"https://api.github.com/users/arkpar/repos","events_url":"https://api.github.com/users/arkpar/events{/privacy}","received_events_url":"https://api.github.com/users/arkpar/received_events","type":"User","site_admin":false},"created_at":"2016-10-21T14:47:43Z","updated_at":"2016-10-21T14:47:43Z","body":"You probably need built-in accounts in the spec for a contract to run properly. Try adding these:\r\nhttps://github.com/ethcore/parity/blob/master/ethcore/res/ethereum/frontier_test.json#L37-L41"}}
{"actor":{"display_login":"arkpar"}}