{"action":"created","issue":{"url":"https://api.github.com/repos/jpmorganchase/quorum/issues/564","repository_url":"https://api.github.com/repos/jpmorganchase/quorum","labels_url":"https://api.github.com/repos/jpmorganchase/quorum/issues/564/labels{/name}","comments_url":"https://api.github.com/repos/jpmorganchase/quorum/issues/564/comments","events_url":"https://api.github.com/repos/jpmorganchase/quorum/issues/564/events","html_url":"https://github.com/jpmorganchase/quorum/issues/564","id":378679204,"node_id":"MDU6SXNzdWUzNzg2NzkyMDQ=","number":564,"title":"Unable to deploy private contract with gas enabled (IsQuorum set to true in genesis file)","user":{"login":"nandakishorebhandari","id":34581284,"node_id":"MDQ6VXNlcjM0NTgxMjg0","avatar_url":"https://avatars0.githubusercontent.com/u/34581284?v=4","gravatar_id":"","url":"https://api.github.com/users/nandakishorebhandari","html_url":"https://github.com/nandakishorebhandari","followers_url":"https://api.github.com/users/nandakishorebhandari/followers","following_url":"https://api.github.com/users/nandakishorebhandari/following{/other_user}","gists_url":"https://api.github.com/users/nandakishorebhandari/gists{/gist_id}","starred_url":"https://api.github.com/users/nandakishorebhandari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nandakishorebhandari/subscriptions","organizations_url":"https://api.github.com/users/nandakishorebhandari/orgs","repos_url":"https://api.github.com/users/nandakishorebhandari/repos","events_url":"https://api.github.com/users/nandakishorebhandari/events{/privacy}","received_events_url":"https://api.github.com/users/nandakishorebhandari/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-11-08T10:56:16Z","updated_at":"2018-11-13T11:39:38Z","closed_at":"2018-11-08T13:57:23Z","author_association":"NONE","body":"#### System information\r\n\r\nGeth version: v1.7.2\r\n\r\nOS & Version: Linux\r\n\r\nBranch, Commit Hash or Release: v2.0.0\r\n\r\n#### Expected behaviour\r\nThe private contract should be deployed successfully\r\n\r\n#### Actual behaviour\r\nGetting Error\r\n**\"Error: The contract code couldn't be stored, please check your gas limit.\"**\r\n\r\n#### Steps to reproduce the behaviour\r\nIt's a 3 node cluster with gas enabled\r\nDeploying private contract from node 1 to node2\r\n\r\nExecute below Contract from Node1\r\n  var bytecode = \"0x6060604052341561000f57600080fd5b604051602080610149833981016040528080519060200190919050505b806000819055505b505b610104806100456000396000f30060606040526000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680632a1afcd914605157806360fe47b11460775780636d4ce63c146097575b600080fd5b3415605b57600080fd5b606160bd565b6040518082815260200191505060405180910390f35b3415608157600080fd5b6095600480803590602001909190505060c3565b005b341560a157600080fd5b60a760ce565b6040518082815260200191505060405180910390f35b60005481565b806000819055505b50565b6000805490505b905600a165627a7a72305820d5851baab720bba574474de3d09dbeaabc674a15f4dd93b974908476542c23f00029\";\r\n    \r\n    var simpleContract = new Contract(abi);\r\n\r\n    simpleContract\r\n        .deploy({\r\n            data: bytecode,\r\n            arguments: [123]\r\n        })\r\n        .send(\r\n            {\r\n                from: fromAcc ,\r\n                gas: 100000,\r\n                gasPrice: 1,\r\n                privateFor:[\"TIaXPkgN/v7PPt/P89C4S4rWZF7W6wn5YhlWPE1M8wg=\"]    \r\n\r\n                \r\n            },\r\n            function (error, transactionHash) {\r\n                console.log(transactionHash, error);\r\n            }\r\n        )\r\n        .on(\"error\", function (error) {\r\n            console.log(error);\r\n        })\r\n        .on(\"transactionHash\", function (transactionHash) {\r\n            console.log(transactionHash);\r\n        })\r\n        .on(\"receipt\", function (receipt) {\r\n            console.log(receipt.contractAddress); // contains the new contract address\r\n        })\r\n        .on(\"confirmation\", function (confirmationNumber, receipt) {\r\n            console.log(confirmationNumber, receipt);\r\n        })\r\n        .then(function (newContractInstance) {\r\n            console.log(newContractInstance.options.address); // instance with the new contract address\r\n        });\r\n\r\n#### Backtrace\r\n**After Executing the above contract transaction:**\r\n**From WEB3:**\r\n````\r\n\r\n0 { blockHash: '0x5f6ffc4442379a67718f9e5c23c8a71b10a36e1dc236b72e41b52e94110cc4cb',\r\n  blockNumber: 6262,\r\n  contractAddress: '0x8C37e3C7635c24015EA93e77981B33a2721bCAcE',\r\n  cumulativeGasUsed: 2000000,\r\n  from: '0xca843569e3427144cead5e4d5999a3d0ccf92b8e',\r\n  gasUsed: 2000000,\r\n  logsBloom: '0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000',\r\n  root: '0x49da9a55b9661f028f10be585b81c7f1bcc5c5acdae985814bd30b3a08c680f4',\r\n  to: null,\r\n  transactionHash: '0x7b5c94290142c1edc6775067357976573415a071dbe2ee8c0e9e06697c8fdf00',\r\n  transactionIndex: 0,\r\n  events: {} }\r\nError: The contract code couldn't be stored, please check your gas limit.\r\n\r\n\r\n\r\n````\r\n**Participating Node 2: **\r\n```\r\nTRACE[11-08|11:20:20] << NEIGHBORS/v4                          addr=204.236.250.119:30301 err=nil\r\nTRACE[11-08|11:20:20] Discarding invalid transaction           hash=7b5c94…8fdf00 err=\"transaction underpriced\"\r\nWARN [11-08|11:20:20] Failed to verify proposal                address=0x88Fd64a4dFa13EE37D7BeE60D4dd9072cF18EeE5 from=0x1b8E739591D8E4Cc8149392841D616279109a2eD state=\"Accept request\" err=\"block in the future\"                         duration=5.889391ms\r\n```"},"comment":{"url":"https://api.github.com/repos/jpmorganchase/quorum/issues/comments/438236323","html_url":"https://github.com/jpmorganchase/quorum/issues/564#issuecomment-438236323","issue_url":"https://api.github.com/repos/jpmorganchase/quorum/issues/564","id":438236323,"node_id":"MDEyOklzc3VlQ29tbWVudDQzODIzNjMyMw==","user":{"login":"SatpalSandhu61","id":28562234,"node_id":"MDQ6VXNlcjI4NTYyMjM0","avatar_url":"https://avatars2.githubusercontent.com/u/28562234?v=4","gravatar_id":"","url":"https://api.github.com/users/SatpalSandhu61","html_url":"https://github.com/SatpalSandhu61","followers_url":"https://api.github.com/users/SatpalSandhu61/followers","following_url":"https://api.github.com/users/SatpalSandhu61/following{/other_user}","gists_url":"https://api.github.com/users/SatpalSandhu61/gists{/gist_id}","starred_url":"https://api.github.com/users/SatpalSandhu61/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SatpalSandhu61/subscriptions","organizations_url":"https://api.github.com/users/SatpalSandhu61/orgs","repos_url":"https://api.github.com/users/SatpalSandhu61/repos","events_url":"https://api.github.com/users/SatpalSandhu61/events{/privacy}","received_events_url":"https://api.github.com/users/SatpalSandhu61/received_events","type":"User","site_admin":false},"created_at":"2018-11-13T11:39:38Z","updated_at":"2018-11-13T11:39:38Z","author_association":"COLLABORATOR","body":"Is there any particular reason you are setting isQuorum to false? It needs to be set to true if you want support for private transactions. If you set isQuorum to true then you'll find your contract will work if you do either of the following:\r\n- set gasPrice to zero\r\n- make the contract public (by removing privateFor)\r\nNote that there's no point in setting gasPrice to non-zero on a private contract as Quorum doesn't actually deduct any ether for creating/running private contracts."}}
{"actor":{"display_login":"SatpalSandhu61"}}