{"action":"created","issue":{"url":"https://api.github.com/repos/bitcoin/bitcoin/issues/7774","repository_url":"https://api.github.com/repos/bitcoin/bitcoin","labels_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/7774/labels{/name}","comments_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/7774/comments","events_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/7774/events","html_url":"https://github.com/bitcoin/bitcoin/pull/7774","id":144744524,"number":7774,"title":"RPC: BIP9 version bits related, format version as hex in getblock and getblockheader","user":{"login":"mruddy","id":6440430,"avatar_url":"https://avatars.githubusercontent.com/u/6440430?v=3","gravatar_id":"","url":"https://api.github.com/users/mruddy","html_url":"https://github.com/mruddy","followers_url":"https://api.github.com/users/mruddy/followers","following_url":"https://api.github.com/users/mruddy/following{/other_user}","gists_url":"https://api.github.com/users/mruddy/gists{/gist_id}","starred_url":"https://api.github.com/users/mruddy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mruddy/subscriptions","organizations_url":"https://api.github.com/users/mruddy/orgs","repos_url":"https://api.github.com/users/mruddy/repos","events_url":"https://api.github.com/users/mruddy/events{/privacy}","received_events_url":"https://api.github.com/users/mruddy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-30T23:06:02Z","updated_at":"2016-03-31T00:56:56Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/bitcoin/bitcoin/pulls/7774","html_url":"https://github.com/bitcoin/bitcoin/pull/7774","diff_url":"https://github.com/bitcoin/bitcoin/pull/7774.diff","patch_url":"https://github.com/bitcoin/bitcoin/pull/7774.patch"},"body":"Update `getblock` and `getblockheader` RPCs and rest to return hex encoded block versions, e.g.:\r\n\r\n`\"version\": \"0x01\"`\r\n\r\n`\"version\": \"0x20000000\"`\r\n\r\nReason is similar to https://github.com/bitcoin/bitcoin/pull/7763: \"The decimal printing of block nVersion is not very readable in a versionbits world.\"\r\n\r\nMy only apprehension is that this could be disruptive to people that have script relying on this output. But, I'm not aware of any guarantee that this will not change.\r\n\r\nI purposefully chose 02 instead of 08 in order to get a smaller encoding when possible."},"comment":{"url":"https://api.github.com/repos/bitcoin/bitcoin/issues/comments/203699967","html_url":"https://github.com/bitcoin/bitcoin/pull/7774#issuecomment-203699967","issue_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/7774","id":203699967,"user":{"login":"dcousens","id":413395,"avatar_url":"https://avatars.githubusercontent.com/u/413395?v=3","gravatar_id":"","url":"https://api.github.com/users/dcousens","html_url":"https://github.com/dcousens","followers_url":"https://api.github.com/users/dcousens/followers","following_url":"https://api.github.com/users/dcousens/following{/other_user}","gists_url":"https://api.github.com/users/dcousens/gists{/gist_id}","starred_url":"https://api.github.com/users/dcousens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcousens/subscriptions","organizations_url":"https://api.github.com/users/dcousens/orgs","repos_url":"https://api.github.com/users/dcousens/repos","events_url":"https://api.github.com/users/dcousens/events{/privacy}","received_events_url":"https://api.github.com/users/dcousens/received_events","type":"User","site_admin":false},"created_at":"2016-03-31T00:56:56Z","updated_at":"2016-03-31T00:56:56Z","body":"Is the PRC designed for human consumption any way?  Converting these numbers to hex is often a 1-liner anyway."}}