{"action":"created","issue":{"url":"https://api.github.com/repos/ethereum/solidity/issues/1305","repository_url":"https://api.github.com/repos/ethereum/solidity","labels_url":"https://api.github.com/repos/ethereum/solidity/issues/1305/labels{/name}","comments_url":"https://api.github.com/repos/ethereum/solidity/issues/1305/comments","events_url":"https://api.github.com/repos/ethereum/solidity/issues/1305/events","html_url":"https://github.com/ethereum/solidity/issues/1305","id":186134319,"number":1305,"title":"eth_call block.blockhash(n) == sendTransaction block.blockhash(n+1)","user":{"login":"wighawag","id":790580,"avatar_url":"https://avatars.githubusercontent.com/u/790580?v=3","gravatar_id":"","url":"https://api.github.com/users/wighawag","html_url":"https://github.com/wighawag","followers_url":"https://api.github.com/users/wighawag/followers","following_url":"https://api.github.com/users/wighawag/following{/other_user}","gists_url":"https://api.github.com/users/wighawag/gists{/gist_id}","starred_url":"https://api.github.com/users/wighawag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wighawag/subscriptions","organizations_url":"https://api.github.com/users/wighawag/orgs","repos_url":"https://api.github.com/users/wighawag/repos","events_url":"https://api.github.com/users/wighawag/events{/privacy}","received_events_url":"https://api.github.com/users/wighawag/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-30T12:47:25Z","updated_at":"2016-10-30T13:14:06Z","closed_at":"2016-10-30T13:14:06Z","body":"I do not know whether it is a bug in solidity or the evm but it is quite serious\r\nBasically code executed on an call differ from code executed as part of transaction in regard to blockhash\r\n\r\nI created a gist for browser solidity here : https://ethereum.github.io/browser-solidity/#version=soljson-v0.4.3+commit.2353da71.js&optimize=true&gist=2bd29ecb4148205918a55d2fed599c30\r\n\r\ncontract address : 0x56E67D215aB5Af9B2476c85881D9F19cF26ac064\r\n\r\ncall getBlockHash with a recent blockNumber and check the value\r\nsubmit a tx for saveBlockHash with that same blockNumber as argument\r\ncall getSavedBlockHash and you ll see they are not the same while they should\r\n\r\nIt turns out that :\r\n```\r\neth_call block.blockhash(n) == sendTransaction block.blockhash(n+1)\r\n``` \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ethereum/solidity/issues/comments/257150266","html_url":"https://github.com/ethereum/solidity/issues/1305#issuecomment-257150266","issue_url":"https://api.github.com/repos/ethereum/solidity/issues/1305","id":257150266,"user":{"login":"axic","id":20340,"avatar_url":"https://avatars.githubusercontent.com/u/20340?v=3","gravatar_id":"","url":"https://api.github.com/users/axic","html_url":"https://github.com/axic","followers_url":"https://api.github.com/users/axic/followers","following_url":"https://api.github.com/users/axic/following{/other_user}","gists_url":"https://api.github.com/users/axic/gists{/gist_id}","starred_url":"https://api.github.com/users/axic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axic/subscriptions","organizations_url":"https://api.github.com/users/axic/orgs","repos_url":"https://api.github.com/users/axic/repos","events_url":"https://api.github.com/users/axic/events{/privacy}","received_events_url":"https://api.github.com/users/axic/received_events","type":"User","site_admin":false},"created_at":"2016-10-30T13:14:06Z","updated_at":"2016-10-30T13:14:06Z","body":"Closing as it is not a bug in Solidity."}}
{"actor":{"display_login":"axic"}}