{"action":"created","comment":{"url":"https://api.github.com/repos/ethereum/go-ethereum/pulls/comments/42967962","id":42967962,"diff_hunk":"@@ -0,0 +1,275 @@\n+// Copyright 2015 The go-ethereum Authors\n+// This file is part of the go-ethereum library.\n+//\n+// The go-ethereum library is free software: you can redistribute it and/or modify\n+// it under the terms of the GNU Lesser General Public License as published by\n+// the Free Software Foundation, either version 3 of the License, or\n+// (at your option) any later version.\n+//\n+// The go-ethereum library is distributed in the hope that it will be useful,\n+// but WITHOUT ANY WARRANTY; without even the implied warranty of\n+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n+// GNU Lesser General Public License for more details.\n+//\n+// You should have received a copy of the GNU Lesser General Public License\n+// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.\n+\n+package v2\n+\n+import (\n+\t\"encoding/json\"\n+\t\"io\"\n+\t\"reflect\"\n+\t\"strings\"\n+\t\"sync/atomic\"\n+)\n+\n+const (\n+\tjsonRPCVersion         = \"2.0\"\n+\tserviceMethodSeparator = \"_\"\n+\tsubscribeMethod        = \"eth_subscribe\"\n+\tunsubscribeMethod      = \"eth_unsubscribe\"\n+\tnotificationMethod     = \"eth_subscription\"\n+)\n+\n+// JSON-RPC request\n+type jsonRequest struct {\n+\tMethod  string          `json:\"method\"`\n+\tVersion string          `json:\"jsonrpc\"`\n+\tId      int64           `json:\"id\"`","path":"rpc/v2/json.go","position":39,"original_position":39,"commit_id":"ae2309ba06a6dbc45323cbb04aabb85d4dcb8534","original_commit_id":"ae2309ba06a6dbc45323cbb04aabb85d4dcb8534","user":{"login":"bas-vk","id":4280775,"avatar_url":"https://avatars.githubusercontent.com/u/4280775?v=3","gravatar_id":"","url":"https://api.github.com/users/bas-vk","html_url":"https://github.com/bas-vk","followers_url":"https://api.github.com/users/bas-vk/followers","following_url":"https://api.github.com/users/bas-vk/following{/other_user}","gists_url":"https://api.github.com/users/bas-vk/gists{/gist_id}","starred_url":"https://api.github.com/users/bas-vk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bas-vk/subscriptions","organizations_url":"https://api.github.com/users/bas-vk/orgs","repos_url":"https://api.github.com/users/bas-vk/repos","events_url":"https://api.github.com/users/bas-vk/events{/privacy}","received_events_url":"https://api.github.com/users/bas-vk/received_events","type":"User","site_admin":false},"body":"see below","created_at":"2015-10-26T08:27:28Z","updated_at":"2015-10-26T08:27:28Z","html_url":"https://github.com/ethereum/go-ethereum/pull/1912#discussion_r42967962","pull_request_url":"https://api.github.com/repos/ethereum/go-ethereum/pulls/1912","_links":{"self":{"href":"https://api.github.com/repos/ethereum/go-ethereum/pulls/comments/42967962"},"html":{"href":"https://github.com/ethereum/go-ethereum/pull/1912#discussion_r42967962"},"pull_request":{"href":"https://api.github.com/repos/ethereum/go-ethereum/pulls/1912"}}},"pull_request":{"url":"https://api.github.com/repos/ethereum/go-ethereum/pulls/1912","id":48045608,"html_url":"https://github.com/ethereum/go-ethereum/pull/1912","diff_url":"https://github.com/ethereum/go-ethereum/pull/1912.diff","patch_url":"https://github.com/ethereum/go-ethereum/pull/1912.patch","issue_url":"https://api.github.com/repos/ethereum/go-ethereum/issues/1912","number":1912,"state":"open","locked":false,"title":"rpc/v2: new RPC implementation","user":{"login":"bas-vk","id":4280775,"avatar_url":"https://avatars.githubusercontent.com/u/4280775?v=3","gravatar_id":"","url":"https://api.github.com/users/bas-vk","html_url":"https://github.com/bas-vk","followers_url":"https://api.github.com/users/bas-vk/followers","following_url":"https://api.github.com/users/bas-vk/following{/other_user}","gists_url":"https://api.github.com/users/bas-vk/gists{/gist_id}","starred_url":"https://api.github.com/users/bas-vk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bas-vk/subscriptions","organizations_url":"https://api.github.com/users/bas-vk/orgs","repos_url":"https://api.github.com/users/bas-vk/repos","events_url":"https://api.github.com/users/bas-vk/events{/privacy}","received_events_url":"https://api.github.com/users/bas-vk/received_events","type":"User","site_admin":false},"body":"This PR adds support for the new RPC API using reflection.\r\nIt also adds support for pub/sub.","created_at":"2015-10-19T08:57:30Z","updated_at":"2015-10-26T08:27:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"39b42835c03d0a260e1b2b7371de93d632b99ca9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ethereum/go-ethereum/pulls/1912/commits","review_comments_url":"https://api.github.com/repos/ethereum/go-ethereum/pulls/1912/comments","review_comment_url":"https://api.github.com/repos/ethereum/go-ethereum/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ethereum/go-ethereum/issues/1912/comments","statuses_url":"https://api.github.com/repos/ethereum/go-ethereum/statuses/ae2309ba06a6dbc45323cbb04aabb85d4dcb8534","head":{"label":"bas-vk:jsonrpc","ref":"jsonrpc","sha":"ae2309ba06a6dbc45323cbb04aabb85d4dcb8534","user":{"login":"bas-vk","id":4280775,"avatar_url":"https://avatars.githubusercontent.com/u/4280775?v=3","gravatar_id":"","url":"https://api.github.com/users/bas-vk","html_url":"https://github.com/bas-vk","followers_url":"https://api.github.com/users/bas-vk/followers","following_url":"https://api.github.com/users/bas-vk/following{/other_user}","gists_url":"https://api.github.com/users/bas-vk/gists{/gist_id}","starred_url":"https://api.github.com/users/bas-vk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bas-vk/subscriptions","organizations_url":"https://api.github.com/users/bas-vk/orgs","repos_url":"https://api.github.com/users/bas-vk/repos","events_url":"https://api.github.com/users/bas-vk/events{/privacy}","received_events_url":"https://api.github.com/users/bas-vk/received_events","type":"User","site_admin":false},"repo":{"id":33240025,"name":"go-ethereum","full_name":"bas-vk/go-ethereum","owner":{"login":"bas-vk","id":4280775,"avatar_url":"https://avatars.githubusercontent.com/u/4280775?v=3","gravatar_id":"","url":"https://api.github.com/users/bas-vk","html_url":"https://github.com/bas-vk","followers_url":"https://api.github.com/users/bas-vk/followers","following_url":"https://api.github.com/users/bas-vk/following{/other_user}","gists_url":"https://api.github.com/users/bas-vk/gists{/gist_id}","starred_url":"https://api.github.com/users/bas-vk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bas-vk/subscriptions","organizations_url":"https://api.github.com/users/bas-vk/orgs","repos_url":"https://api.github.com/users/bas-vk/repos","events_url":"https://api.github.com/users/bas-vk/events{/privacy}","received_events_url":"https://api.github.com/users/bas-vk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bas-vk/go-ethereum","description":"Jeffrey Wilcke's Go implementation of the Ethereum y/w paper","fork":true,"url":"https://api.github.com/repos/bas-vk/go-ethereum","forks_url":"https://api.github.com/repos/bas-vk/go-ethereum/forks","keys_url":"https://api.github.com/repos/bas-vk/go-ethereum/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bas-vk/go-ethereum/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bas-vk/go-ethereum/teams","hooks_url":"https://api.github.com/repos/bas-vk/go-ethereum/hooks","issue_events_url":"https://api.github.com/repos/bas-vk/go-ethereum/issues/events{/number}","events_url":"https://api.github.com/repos/bas-vk/go-ethereum/events","assignees_url":"https://api.github.com/repos/bas-vk/go-ethereum/assignees{/user}","branches_url":"https://api.github.com/repos/bas-vk/go-ethereum/branches{/branch}","tags_url":"https://api.github.com/repos/bas-vk/go-ethereum/tags","blobs_url":"https://api.github.com/repos/bas-vk/go-ethereum/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bas-vk/go-ethereum/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bas-vk/go-ethereum/git/refs{/sha}","trees_url":"https://api.github.com/repos/bas-vk/go-ethereum/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bas-vk/go-ethereum/statuses/{sha}","languages_url":"https://api.github.com/repos/bas-vk/go-ethereum/languages","stargazers_url":"https://api.github.com/repos/bas-vk/go-ethereum/stargazers","contributors_url":"https://api.github.com/repos/bas-vk/go-ethereum/contributors","subscribers_url":"https://api.github.com/repos/bas-vk/go-ethereum/subscribers","subscription_url":"https://api.github.com/repos/bas-vk/go-ethereum/subscription","commits_url":"https://api.github.com/repos/bas-vk/go-ethereum/commits{/sha}","git_commits_url":"https://api.github.com/repos/bas-vk/go-ethereum/git/commits{/sha}","comments_url":"https://api.github.com/repos/bas-vk/go-ethereum/comments{/number}","issue_comment_url":"https://api.github.com/repos/bas-vk/go-ethereum/issues/comments{/number}","contents_url":"https://api.github.com/repos/bas-vk/go-ethereum/contents/{+path}","compare_url":"https://api.github.com/repos/bas-vk/go-ethereum/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bas-vk/go-ethereum/merges","archive_url":"https://api.github.com/repos/bas-vk/go-ethereum/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bas-vk/go-ethereum/downloads","issues_url":"https://api.github.com/repos/bas-vk/go-ethereum/issues{/number}","pulls_url":"https://api.github.com/repos/bas-vk/go-ethereum/pulls{/number}","milestones_url":"https://api.github.com/repos/bas-vk/go-ethereum/milestones{/number}","notifications_url":"https://api.github.com/repos/bas-vk/go-ethereum/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bas-vk/go-ethereum/labels{/name}","releases_url":"https://api.github.com/repos/bas-vk/go-ethereum/releases{/id}","created_at":"2015-04-01T09:53:33Z","updated_at":"2015-05-04T10:25:06Z","pushed_at":"2015-10-22T11:56:53Z","git_url":"git://github.com/bas-vk/go-ethereum.git","ssh_url":"git@github.com:bas-vk/go-ethereum.git","clone_url":"https://github.com/bas-vk/go-ethereum.git","svn_url":"https://github.com/bas-vk/go-ethereum","homepage":"","size":51040,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"ethereum:develop","ref":"develop","sha":"58d0752fdd1c7363fb1a127cd7e0a86d7602be02","user":{"login":"ethereum","id":6250754,"avatar_url":"https://avatars.githubusercontent.com/u/6250754?v=3","gravatar_id":"","url":"https://api.github.com/users/ethereum","html_url":"https://github.com/ethereum","followers_url":"https://api.github.com/users/ethereum/followers","following_url":"https://api.github.com/users/ethereum/following{/other_user}","gists_url":"https://api.github.com/users/ethereum/gists{/gist_id}","starred_url":"https://api.github.com/users/ethereum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethereum/subscriptions","organizations_url":"https://api.github.com/users/ethereum/orgs","repos_url":"https://api.github.com/users/ethereum/repos","events_url":"https://api.github.com/users/ethereum/events{/privacy}","received_events_url":"https://api.github.com/users/ethereum/received_events","type":"Organization","site_admin":false},"repo":{"id":15452919,"name":"go-ethereum","full_name":"ethereum/go-ethereum","owner":{"login":"ethereum","id":6250754,"avatar_url":"https://avatars.githubusercontent.com/u/6250754?v=3","gravatar_id":"","url":"https://api.github.com/users/ethereum","html_url":"https://github.com/ethereum","followers_url":"https://api.github.com/users/ethereum/followers","following_url":"https://api.github.com/users/ethereum/following{/other_user}","gists_url":"https://api.github.com/users/ethereum/gists{/gist_id}","starred_url":"https://api.github.com/users/ethereum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethereum/subscriptions","organizations_url":"https://api.github.com/users/ethereum/orgs","repos_url":"https://api.github.com/users/ethereum/repos","events_url":"https://api.github.com/users/ethereum/events{/privacy}","received_events_url":"https://api.github.com/users/ethereum/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ethereum/go-ethereum","description":"Official golang implementation of the Ethereum protocol","fork":false,"url":"https://api.github.com/repos/ethereum/go-ethereum","forks_url":"https://api.github.com/repos/ethereum/go-ethereum/forks","keys_url":"https://api.github.com/repos/ethereum/go-ethereum/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ethereum/go-ethereum/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ethereum/go-ethereum/teams","hooks_url":"https://api.github.com/repos/ethereum/go-ethereum/hooks","issue_events_url":"https://api.github.com/repos/ethereum/go-ethereum/issues/events{/number}","events_url":"https://api.github.com/repos/ethereum/go-ethereum/events","assignees_url":"https://api.github.com/repos/ethereum/go-ethereum/assignees{/user}","branches_url":"https://api.github.com/repos/ethereum/go-ethereum/branches{/branch}","tags_url":"https://api.github.com/repos/ethereum/go-ethereum/tags","blobs_url":"https://api.github.com/repos/ethereum/go-ethereum/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ethereum/go-ethereum/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ethereum/go-ethereum/git/refs{/sha}","trees_url":"https://api.github.com/repos/ethereum/go-ethereum/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ethereum/go-ethereum/statuses/{sha}","languages_url":"https://api.github.com/repos/ethereum/go-ethereum/languages","stargazers_url":"https://api.github.com/repos/ethereum/go-ethereum/stargazers","contributors_url":"https://api.github.com/repos/ethereum/go-ethereum/contributors","subscribers_url":"https://api.github.com/repos/ethereum/go-ethereum/subscribers","subscription_url":"https://api.github.com/repos/ethereum/go-ethereum/subscription","commits_url":"https://api.github.com/repos/ethereum/go-ethereum/commits{/sha}","git_commits_url":"https://api.github.com/repos/ethereum/go-ethereum/git/commits{/sha}","comments_url":"https://api.github.com/repos/ethereum/go-ethereum/comments{/number}","issue_comment_url":"https://api.github.com/repos/ethereum/go-ethereum/issues/comments{/number}","contents_url":"https://api.github.com/repos/ethereum/go-ethereum/contents/{+path}","compare_url":"https://api.github.com/repos/ethereum/go-ethereum/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ethereum/go-ethereum/merges","archive_url":"https://api.github.com/repos/ethereum/go-ethereum/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ethereum/go-ethereum/downloads","issues_url":"https://api.github.com/repos/ethereum/go-ethereum/issues{/number}","pulls_url":"https://api.github.com/repos/ethereum/go-ethereum/pulls{/number}","milestones_url":"https://api.github.com/repos/ethereum/go-ethereum/milestones{/number}","notifications_url":"https://api.github.com/repos/ethereum/go-ethereum/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ethereum/go-ethereum/labels{/name}","releases_url":"https://api.github.com/repos/ethereum/go-ethereum/releases{/id}","created_at":"2013-12-26T13:05:46Z","updated_at":"2015-10-26T05:45:25Z","pushed_at":"2015-10-25T21:50:07Z","git_url":"git://github.com/ethereum/go-ethereum.git","ssh_url":"git@github.com:ethereum/go-ethereum.git","clone_url":"https://github.com/ethereum/go-ethereum.git","svn_url":"https://github.com/ethereum/go-ethereum","homepage":"http://ethereum.github.io/go-ethereum/","size":82817,"stargazers_count":683,"watchers_count":683,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":232,"mirror_url":null,"open_issues_count":119,"forks":232,"open_issues":119,"watchers":683,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ethereum/go-ethereum/pulls/1912"},"html":{"href":"https://github.com/ethereum/go-ethereum/pull/1912"},"issue":{"href":"https://api.github.com/repos/ethereum/go-ethereum/issues/1912"},"comments":{"href":"https://api.github.com/repos/ethereum/go-ethereum/issues/1912/comments"},"review_comments":{"href":"https://api.github.com/repos/ethereum/go-ethereum/pulls/1912/comments"},"review_comment":{"href":"https://api.github.com/repos/ethereum/go-ethereum/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ethereum/go-ethereum/pulls/1912/commits"},"statuses":{"href":"https://api.github.com/repos/ethereum/go-ethereum/statuses/ae2309ba06a6dbc45323cbb04aabb85d4dcb8534"}}}}