{"action":"created","comment":{"url":"https://api.github.com/repos/ethereum/go-ethereum/pulls/comments/66408055","id":66408055,"diff_hunk":"@@ -0,0 +1,343 @@\n+// Copyright 2014 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 eth implements the Ethereum protocol.\n+package eth\n+\n+import (\n+\t\"bytes\"\n+\t\"encoding/binary\"\n+\t\"fmt\"\n+\t\"math/big\"\n+\t\"time\"\n+\n+\t\"github.com/ethereum/go-ethereum/common\"\n+\t\"github.com/ethereum/go-ethereum/core\"\n+\t\"github.com/ethereum/go-ethereum/core/types\"\n+\t\"github.com/ethereum/go-ethereum/ethdb\"\n+\t\"github.com/ethereum/go-ethereum/logger\"\n+\t\"github.com/ethereum/go-ethereum/logger/glog\"\n+\t\"github.com/ethereum/go-ethereum/rlp\"\n+)\n+\n+var useSequentialKeys = []byte(\"dbUpgrade_20160530sequentialKeys\")\n+\n+// upgradeSequentialKeys checks the chain database version and\n+// starts a background process to make upgrades if necessary.\n+// Returns a stop function that blocks until the process has\n+// been safely stopped.\n+func upgradeSequentialKeys(db ethdb.Database) (stopFn func()) {\n+\tdata, _ := db.Get(useSequentialKeys)\n+\tif len(data) > 0 && data[0] == 42 {\n+\t\treturn nil // already converted\n+\t}\n+\n+\tif data, _ := db.Get([]byte(\"LastHeader\")); len(data) == 0 {\n+\t\tdb.Put(useSequentialKeys, []byte{42})\n+\t\treturn nil // empty database, nothing to do\n+\t}\n+\n+\tglog.V(logger.Info).Infof(\"Upgrading chain database to use sequential keys\")\n+\n+\tstopChn := make(chan struct{})\n+\tstoppedChn := make(chan struct{})\n+\n+\tgo func() {\n+\t\tstopFn := func() bool {\n+\t\t\tselect {\n+\t\t\tcase <-time.After(time.Microsecond * 100): // make sure other processes don't get starved\n+\t\t\tcase <-stopChn:\n+\t\t\t\treturn true\n+\t\t\t}\n+\t\t\treturn false\n+\t\t}\n+\n+\t\terr, stopped := upgradeSequentialCanonicalNumbers(db, stopFn)\n+\t\tif err == nil && !stopped {\n+\t\t\terr, stopped = upgradeSequentialBlocks(db, stopFn)\n+\t\t}\n+\t\tif err == nil && !stopped {\n+\t\t\terr, stopped = upgradeSequentialOrphanedReceipts(db, stopFn)\n+\t\t}\n+\t\tif err == nil && !stopped {\n+\t\t\tglog.V(logger.Info).Infof(\"Database conversion successful\")\n+\t\t\tdb.Put(useSequentialKeys, []byte{42})\n+\t\t}\n+\t\tif err != nil {\n+\t\t\tglog.V(logger.Error).Infof(\"Database conversion failed: %v\", err)\n+\t\t}\n+\t\tclose(stoppedChn)\n+\t}()\n+\n+\treturn func() {\n+\t\tclose(stopChn)\n+\t\t<-stoppedChn\n+\t}\n+}\n+\n+// upgradeSequentialCanonicalNumbers reads all old format canonical numbers from\n+// the database, writes them in new format and deletes the old ones if successful.\n+func upgradeSequentialCanonicalNumbers(db ethdb.Database, stopFn func() bool) (error, bool) {\n+\tprefix := []byte(\"block-num-\")\n+\tit := db.(*ethdb.LDBDatabase).NewIterator()\n+\tit.Seek(prefix)\n+\tcnt := 0\n+\tfor bytes.HasPrefix(it.Key(), prefix) {\n+\t\tkeyPtr := it.Key()\n+\t\tif len(keyPtr) < 20 {\n+\t\t\tcnt++\n+\t\t\tif cnt%100000 == 0 {\n+\t\t\t\tglog.V(logger.Info).Infof(\"converting %d canonical numbers...\", cnt)\n+\t\t\t}\n+\t\t\tnumber := big.NewInt(0).SetBytes(keyPtr[10:]).Uint64()\n+\t\t\tnewKey := []byte(\"h12345678n\")\n+\t\t\tbinary.BigEndian.PutUint64(newKey[1:9], number)\n+\t\t\tif err := db.Put(newKey, it.Value()); err != nil {\n+\t\t\t\treturn err, false\n+\t\t\t}\n+\t\t\tif err := db.Delete(keyPtr); err != nil {\n+\t\t\t\treturn err, false\n+\t\t\t}\n+\t\t}\n+\n+\t\tif stopFn() {\n+\t\t\treturn nil, true\n+\t\t}\n+\t\tit.Next()\n+\t}\n+\tif cnt > 0 {\n+\t\tglog.V(logger.Info).Infof(\"converted %d canonical numbers...\", cnt)\n+\t}\n+\treturn nil, false\n+}\n+\n+// upgradeSequentialBlocks reads all old format block headers, bodies, TDs and block\n+// receipts from the database, writes them in new format and deletes the old ones\n+// if successful.\n+func upgradeSequentialBlocks(db ethdb.Database, stopFn func() bool) (error, bool) {\n+\tprefix := []byte(\"block-\")\n+\tit := db.(*ethdb.LDBDatabase).NewIterator()\n+\tit.Seek(prefix)\n+\tcnt := 0\n+\tfor bytes.HasPrefix(it.Key(), prefix) {\n+\t\tkeyPtr := it.Key()\n+\t\tif len(keyPtr) >= 38 {\n+\t\t\tcnt++\n+\t\t\tif cnt%10000 == 0 {\n+\t\t\t\tglog.V(logger.Info).Infof(\"converting %d blocks...\", cnt)\n+\t\t\t}\n+\t\t\t// convert header, body, td and block receipts\n+\t\t\tvar keyPrefix [38]byte\n+\t\t\tcopy(keyPrefix[:], keyPtr[0:38])\n+\t\t\thash := keyPrefix[6:38]\n+\t\t\tif err := upgradeSequentialBlockData(db, hash); err != nil {\n+\t\t\t\treturn err, false\n+\t\t\t}\n+\t\t\t// delete old db entries belonging to this hash\n+\t\t\tfor bytes.HasPrefix(it.Key(), keyPrefix[:]) {\n+\t\t\t\tif err := db.Delete(it.Key()); err != nil {\n+\t\t\t\t\treturn err, false\n+\t\t\t\t}\n+\t\t\t\tit.Next()\n+\t\t\t}\n+\t\t\tif err := db.Delete(append([]byte(\"receipts-block-\"), hash...)); err != nil {\n+\t\t\t\treturn err, false\n+\t\t\t}\n+\t\t} else {\n+\t\t\tit.Next()\n+\t\t}\n+\n+\t\tif stopFn() {\n+\t\t\treturn nil, true\n+\t\t}\n+\t}\n+\tif cnt > 0 {\n+\t\tglog.V(logger.Info).Infof(\"converted %d blocks...\", cnt)\n+\t}\n+\treturn nil, false\n+}\n+\n+// upgradeSequentialOrphanedReceipts removes any old format block receipts from the\n+// database that did not have a corresponding block\n+func upgradeSequentialOrphanedReceipts(db ethdb.Database, stopFn func() bool) (error, bool) {\n+\tprefix := []byte(\"receipts-block-\")\n+\tit := db.(*ethdb.LDBDatabase).NewIterator()","path":"eth/db_upgrade.go","position":177,"original_position":177,"commit_id":"f9917c8c7b6d16daadebd72977e56a8adc0382b0","original_commit_id":"f9917c8c7b6d16daadebd72977e56a8adc0382b0","user":{"login":"obscuren","id":6264126,"avatar_url":"https://avatars.githubusercontent.com/u/6264126?v=3","gravatar_id":"","url":"https://api.github.com/users/obscuren","html_url":"https://github.com/obscuren","followers_url":"https://api.github.com/users/obscuren/followers","following_url":"https://api.github.com/users/obscuren/following{/other_user}","gists_url":"https://api.github.com/users/obscuren/gists{/gist_id}","starred_url":"https://api.github.com/users/obscuren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/obscuren/subscriptions","organizations_url":"https://api.github.com/users/obscuren/orgs","repos_url":"https://api.github.com/users/obscuren/repos","events_url":"https://api.github.com/users/obscuren/events{/privacy}","received_events_url":"https://api.github.com/users/obscuren/received_events","type":"User","site_admin":false},"body":"You don't need the commit BTW. You can also do a type cast instead.","created_at":"2016-06-09T09:21:55Z","updated_at":"2016-06-09T09:21:55Z","html_url":"https://github.com/ethereum/go-ethereum/pull/2455#discussion_r66408055","pull_request_url":"https://api.github.com/repos/ethereum/go-ethereum/pulls/2455","_links":{"self":{"href":"https://api.github.com/repos/ethereum/go-ethereum/pulls/comments/66408055"},"html":{"href":"https://github.com/ethereum/go-ethereum/pull/2455#discussion_r66408055"},"pull_request":{"href":"https://api.github.com/repos/ethereum/go-ethereum/pulls/2455"}}},"pull_request":{"url":"https://api.github.com/repos/ethereum/go-ethereum/pulls/2455","id":66493183,"html_url":"https://github.com/ethereum/go-ethereum/pull/2455","diff_url":"https://github.com/ethereum/go-ethereum/pull/2455.diff","patch_url":"https://github.com/ethereum/go-ethereum/pull/2455.patch","issue_url":"https://api.github.com/repos/ethereum/go-ethereum/issues/2455","number":2455,"state":"open","locked":false,"title":"core: improved chain db performance by using sequential keys","user":{"login":"zsfelfoldi","id":9884311,"avatar_url":"https://avatars.githubusercontent.com/u/9884311?v=3","gravatar_id":"","url":"https://api.github.com/users/zsfelfoldi","html_url":"https://github.com/zsfelfoldi","followers_url":"https://api.github.com/users/zsfelfoldi/followers","following_url":"https://api.github.com/users/zsfelfoldi/following{/other_user}","gists_url":"https://api.github.com/users/zsfelfoldi/gists{/gist_id}","starred_url":"https://api.github.com/users/zsfelfoldi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zsfelfoldi/subscriptions","organizations_url":"https://api.github.com/users/zsfelfoldi/orgs","repos_url":"https://api.github.com/users/zsfelfoldi/repos","events_url":"https://api.github.com/users/zsfelfoldi/events{/privacy}","received_events_url":"https://api.github.com/users/zsfelfoldi/received_events","type":"User","site_admin":false},"body":"This PR implements the \"sequential keys\" chain db improvement. Upgrade is automatical and runs in the background.","created_at":"2016-04-14T14:25:54Z","updated_at":"2016-06-09T09:21:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"afe4d0f213f4b39e0ed108ed6d09cd0b2d5b0217","assignee":null,"milestone":{"url":"https://api.github.com/repos/ethereum/go-ethereum/milestones/26","html_url":"https://github.com/ethereum/go-ethereum/milestones/1.5.0","labels_url":"https://api.github.com/repos/ethereum/go-ethereum/milestones/26/labels","id":1593424,"number":26,"title":"1.5.0","description":"","creator":{"login":"karalabe","id":129561,"avatar_url":"https://avatars.githubusercontent.com/u/129561?v=3","gravatar_id":"","url":"https://api.github.com/users/karalabe","html_url":"https://github.com/karalabe","followers_url":"https://api.github.com/users/karalabe/followers","following_url":"https://api.github.com/users/karalabe/following{/other_user}","gists_url":"https://api.github.com/users/karalabe/gists{/gist_id}","starred_url":"https://api.github.com/users/karalabe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karalabe/subscriptions","organizations_url":"https://api.github.com/users/karalabe/orgs","repos_url":"https://api.github.com/users/karalabe/repos","events_url":"https://api.github.com/users/karalabe/events{/privacy}","received_events_url":"https://api.github.com/users/karalabe/received_events","type":"User","site_admin":false},"open_issues":28,"closed_issues":8,"state":"open","created_at":"2016-02-19T15:55:33Z","updated_at":"2016-05-31T08:48:08Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/ethereum/go-ethereum/pulls/2455/commits","review_comments_url":"https://api.github.com/repos/ethereum/go-ethereum/pulls/2455/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/2455/comments","statuses_url":"https://api.github.com/repos/ethereum/go-ethereum/statuses/f9917c8c7b6d16daadebd72977e56a8adc0382b0","head":{"label":"zsfelfoldi:chaindb","ref":"chaindb","sha":"f9917c8c7b6d16daadebd72977e56a8adc0382b0","user":{"login":"zsfelfoldi","id":9884311,"avatar_url":"https://avatars.githubusercontent.com/u/9884311?v=3","gravatar_id":"","url":"https://api.github.com/users/zsfelfoldi","html_url":"https://github.com/zsfelfoldi","followers_url":"https://api.github.com/users/zsfelfoldi/followers","following_url":"https://api.github.com/users/zsfelfoldi/following{/other_user}","gists_url":"https://api.github.com/users/zsfelfoldi/gists{/gist_id}","starred_url":"https://api.github.com/users/zsfelfoldi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zsfelfoldi/subscriptions","organizations_url":"https://api.github.com/users/zsfelfoldi/orgs","repos_url":"https://api.github.com/users/zsfelfoldi/repos","events_url":"https://api.github.com/users/zsfelfoldi/events{/privacy}","received_events_url":"https://api.github.com/users/zsfelfoldi/received_events","type":"User","site_admin":false},"repo":{"id":35270492,"name":"go-ethereum","full_name":"zsfelfoldi/go-ethereum","owner":{"login":"zsfelfoldi","id":9884311,"avatar_url":"https://avatars.githubusercontent.com/u/9884311?v=3","gravatar_id":"","url":"https://api.github.com/users/zsfelfoldi","html_url":"https://github.com/zsfelfoldi","followers_url":"https://api.github.com/users/zsfelfoldi/followers","following_url":"https://api.github.com/users/zsfelfoldi/following{/other_user}","gists_url":"https://api.github.com/users/zsfelfoldi/gists{/gist_id}","starred_url":"https://api.github.com/users/zsfelfoldi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zsfelfoldi/subscriptions","organizations_url":"https://api.github.com/users/zsfelfoldi/orgs","repos_url":"https://api.github.com/users/zsfelfoldi/repos","events_url":"https://api.github.com/users/zsfelfoldi/events{/privacy}","received_events_url":"https://api.github.com/users/zsfelfoldi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zsfelfoldi/go-ethereum","description":"Jeffrey Wilcke's Go implementation of the Ethereum y/w paper","fork":true,"url":"https://api.github.com/repos/zsfelfoldi/go-ethereum","forks_url":"https://api.github.com/repos/zsfelfoldi/go-ethereum/forks","keys_url":"https://api.github.com/repos/zsfelfoldi/go-ethereum/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zsfelfoldi/go-ethereum/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zsfelfoldi/go-ethereum/teams","hooks_url":"https://api.github.com/repos/zsfelfoldi/go-ethereum/hooks","issue_events_url":"https://api.github.com/repos/zsfelfoldi/go-ethereum/issues/events{/number}","events_url":"https://api.github.com/repos/zsfelfoldi/go-ethereum/events","assignees_url":"https://api.github.com/repos/zsfelfoldi/go-ethereum/assignees{/user}","branches_url":"https://api.github.com/repos/zsfelfoldi/go-ethereum/branches{/branch}","tags_url":"https://api.github.com/repos/zsfelfoldi/go-ethereum/tags","blobs_url":"https://api.github.com/repos/zsfelfoldi/go-ethereum/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zsfelfoldi/go-ethereum/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zsfelfoldi/go-ethereum/git/refs{/sha}","trees_url":"https://api.github.com/repos/zsfelfoldi/go-ethereum/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zsfelfoldi/go-ethereum/statuses/{sha}","languages_url":"https://api.github.com/repos/zsfelfoldi/go-ethereum/languages","stargazers_url":"https://api.github.com/repos/zsfelfoldi/go-ethereum/stargazers","contributors_url":"https://api.github.com/repos/zsfelfoldi/go-ethereum/contributors","subscribers_url":"https://api.github.com/repos/zsfelfoldi/go-ethereum/subscribers","subscription_url":"https://api.github.com/repos/zsfelfoldi/go-ethereum/subscription","commits_url":"https://api.github.com/repos/zsfelfoldi/go-ethereum/commits{/sha}","git_commits_url":"https://api.github.com/repos/zsfelfoldi/go-ethereum/git/commits{/sha}","comments_url":"https://api.github.com/repos/zsfelfoldi/go-ethereum/comments{/number}","issue_comment_url":"https://api.github.com/repos/zsfelfoldi/go-ethereum/issues/comments{/number}","contents_url":"https://api.github.com/repos/zsfelfoldi/go-ethereum/contents/{+path}","compare_url":"https://api.github.com/repos/zsfelfoldi/go-ethereum/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zsfelfoldi/go-ethereum/merges","archive_url":"https://api.github.com/repos/zsfelfoldi/go-ethereum/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zsfelfoldi/go-ethereum/downloads","issues_url":"https://api.github.com/repos/zsfelfoldi/go-ethereum/issues{/number}","pulls_url":"https://api.github.com/repos/zsfelfoldi/go-ethereum/pulls{/number}","milestones_url":"https://api.github.com/repos/zsfelfoldi/go-ethereum/milestones{/number}","notifications_url":"https://api.github.com/repos/zsfelfoldi/go-ethereum/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zsfelfoldi/go-ethereum/labels{/name}","releases_url":"https://api.github.com/repos/zsfelfoldi/go-ethereum/releases{/id}","deployments_url":"https://api.github.com/repos/zsfelfoldi/go-ethereum/deployments","created_at":"2015-05-08T09:23:28Z","updated_at":"2016-06-02T14:59:02Z","pushed_at":"2016-06-07T15:07:39Z","git_url":"git://github.com/zsfelfoldi/go-ethereum.git","ssh_url":"git@github.com:zsfelfoldi/go-ethereum.git","clone_url":"https://github.com/zsfelfoldi/go-ethereum.git","svn_url":"https://github.com/zsfelfoldi/go-ethereum","homepage":"","size":60437,"stargazers_count":5,"watchers_count":5,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":5,"default_branch":"develop"}},"base":{"label":"ethereum:develop","ref":"develop","sha":"fdd61b83ffe1ac0e3ef0621acbd92dd61df9910d","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}","deployments_url":"https://api.github.com/repos/ethereum/go-ethereum/deployments","created_at":"2013-12-26T13:05:46Z","updated_at":"2016-06-09T02:16:34Z","pushed_at":"2016-06-09T08:48:23Z","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":161903,"stargazers_count":1648,"watchers_count":1648,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":531,"mirror_url":null,"open_issues_count":236,"forks":531,"open_issues":236,"watchers":1648,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ethereum/go-ethereum/pulls/2455"},"html":{"href":"https://github.com/ethereum/go-ethereum/pull/2455"},"issue":{"href":"https://api.github.com/repos/ethereum/go-ethereum/issues/2455"},"comments":{"href":"https://api.github.com/repos/ethereum/go-ethereum/issues/2455/comments"},"review_comments":{"href":"https://api.github.com/repos/ethereum/go-ethereum/pulls/2455/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/2455/commits"},"statuses":{"href":"https://api.github.com/repos/ethereum/go-ethereum/statuses/f9917c8c7b6d16daadebd72977e56a8adc0382b0"}}}}
{"actor":{"display_login":"obscuren"}}