{"action":"closed","issue":{"url":"https://api.github.com/repos/ethereum/ethereumj/issues/155","labels_url":"https://api.github.com/repos/ethereum/ethereumj/issues/155/labels{/name}","comments_url":"https://api.github.com/repos/ethereum/ethereumj/issues/155/comments","events_url":"https://api.github.com/repos/ethereum/ethereumj/issues/155/events","html_url":"https://github.com/ethereum/ethereumj/issues/155","id":46818894,"number":155,"title":"Change SSTORE mechanics","user":{"login":"nicksavers","id":7483198,"avatar_url":"https://avatars.githubusercontent.com/u/7483198?v=3","gravatar_id":"","url":"https://api.github.com/users/nicksavers","html_url":"https://github.com/nicksavers","followers_url":"https://api.github.com/users/nicksavers/followers","following_url":"https://api.github.com/users/nicksavers/following{/other_user}","gists_url":"https://api.github.com/users/nicksavers/gists{/gist_id}","starred_url":"https://api.github.com/users/nicksavers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicksavers/subscriptions","organizations_url":"https://api.github.com/users/nicksavers/orgs","repos_url":"https://api.github.com/users/nicksavers/repos","events_url":"https://api.github.com/users/nicksavers/events{/privacy}","received_events_url":"https://api.github.com/users/nicksavers/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ethereum/ethereumj/labels/in_progress","name":"in_progress","color":"ededed"},{"url":"https://api.github.com/repos/ethereum/ethereumj/labels/refactor","name":"refactor","color":"fbca04"}],"state":"closed","locked":false,"assignee":{"login":"nicksavers","id":7483198,"avatar_url":"https://avatars.githubusercontent.com/u/7483198?v=3","gravatar_id":"","url":"https://api.github.com/users/nicksavers","html_url":"https://github.com/nicksavers","followers_url":"https://api.github.com/users/nicksavers/followers","following_url":"https://api.github.com/users/nicksavers/following{/other_user}","gists_url":"https://api.github.com/users/nicksavers/gists{/gist_id}","starred_url":"https://api.github.com/users/nicksavers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicksavers/subscriptions","organizations_url":"https://api.github.com/users/nicksavers/orgs","repos_url":"https://api.github.com/users/nicksavers/repos","events_url":"https://api.github.com/users/nicksavers/events{/privacy}","received_events_url":"https://api.github.com/users/nicksavers/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/ethereum/ethereumj/milestones/3","labels_url":"https://api.github.com/repos/ethereum/ethereumj/milestones/3/labels","id":765912,"number":3,"title":"Proof of Concept 7","description":"The features for this milestone are.\r\n\r\nAdd JUMPDEST\r\nKill POST\r\nCALLSTATELESS (0xf4) becomes CALLCODE (0xf3)\r\nmax 1024 CALL/CREATE depth.\r\nP2P adaptive message ids\r\nP2P support IPv6\r\nNewBlock message\r\nHardcoded contracts ECRECOVER SHA256 RIPEMD160\r\nKill NEG, replace with BNOT\r\nAdd SIGNEXTEND","creator":{"login":"nicksavers","id":7483198,"avatar_url":"https://avatars.githubusercontent.com/u/7483198?v=3","gravatar_id":"","url":"https://api.github.com/users/nicksavers","html_url":"https://github.com/nicksavers","followers_url":"https://api.github.com/users/nicksavers/followers","following_url":"https://api.github.com/users/nicksavers/following{/other_user}","gists_url":"https://api.github.com/users/nicksavers/gists{/gist_id}","starred_url":"https://api.github.com/users/nicksavers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicksavers/subscriptions","organizations_url":"https://api.github.com/users/nicksavers/orgs","repos_url":"https://api.github.com/users/nicksavers/repos","events_url":"https://api.github.com/users/nicksavers/events{/privacy}","received_events_url":"https://api.github.com/users/nicksavers/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":14,"state":"open","created_at":"2014-08-26T11:20:55Z","updated_at":"2015-01-06T09:39:13Z","due_on":"2014-11-07T08:00:00Z","closed_at":null},"comments":0,"created_at":"2014-10-25T18:13:45Z","updated_at":"2015-01-06T09:39:13Z","closed_at":"2015-01-06T09:39:13Z","body":"- SSTORE from nonzero to nonzero costs 100 gas\r\n- SSTORE from zero to nonzero costs 300 gas\r\n- SSTORE from nonzero to zero costs 0 gas, and adds 100 gas to a GASREFUND counter (handled same way as suicides)\r\n- at the end of a non-OOG execution, an account is refunded min(GASREFUND, gas_used / 2) # max refund 50% since otherwise contracts would have the ability to trigger many refunds and completely disincentivize miners from processing the tx.\r\nAlthough, miners do have the incentive to process the tx because it reduces the amount of storage they'll have to do in the long term, so should be fine overall max refund is 50% rounded down"}}