{"action":"created","comment":{"url":"https://api.github.com/repos/btcsuite/btcd/pulls/comments/51807465","id":51807465,"diff_hunk":"@@ -0,0 +1,66 @@\n+// Copyright (c) 2016 The btcsuite developers\n+// Use of this source code is governed by an ISC\n+// license that can be found in the LICENSE file.\n+\n+package wire_test\n+\n+import (\n+\t\"bytes\"\n+\t\"testing\"\n+\n+\t\"github.com/btcsuite/btcd/wire\"\n+)\n+\n+func TestSendHeaders(t *testing.T) {","path":"wire/msgsendheaders_test.go","position":14,"original_position":14,"commit_id":"d4a3ae1a56fdcbd7eb1a45b3f4dd93c2d3c575de","original_commit_id":"d4a3ae1a56fdcbd7eb1a45b3f4dd93c2d3c575de","user":{"login":"davecgh","id":2115102,"avatar_url":"https://avatars.githubusercontent.com/u/2115102?v=3","gravatar_id":"","url":"https://api.github.com/users/davecgh","html_url":"https://github.com/davecgh","followers_url":"https://api.github.com/users/davecgh/followers","following_url":"https://api.github.com/users/davecgh/following{/other_user}","gists_url":"https://api.github.com/users/davecgh/gists{/gist_id}","starred_url":"https://api.github.com/users/davecgh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davecgh/subscriptions","organizations_url":"https://api.github.com/users/davecgh/orgs","repos_url":"https://api.github.com/users/davecgh/repos","events_url":"https://api.github.com/users/davecgh/events{/privacy}","received_events_url":"https://api.github.com/users/davecgh/received_events","type":"User","site_admin":false},"body":"Missing comment.","created_at":"2016-02-03T23:41:07Z","updated_at":"2016-02-03T23:41:07Z","html_url":"https://github.com/btcsuite/btcd/pull/572#discussion_r51807465","pull_request_url":"https://api.github.com/repos/btcsuite/btcd/pulls/572","_links":{"self":{"href":"https://api.github.com/repos/btcsuite/btcd/pulls/comments/51807465"},"html":{"href":"https://github.com/btcsuite/btcd/pull/572#discussion_r51807465"},"pull_request":{"href":"https://api.github.com/repos/btcsuite/btcd/pulls/572"}}},"pull_request":{"url":"https://api.github.com/repos/btcsuite/btcd/pulls/572","id":52445935,"html_url":"https://github.com/btcsuite/btcd/pull/572","diff_url":"https://github.com/btcsuite/btcd/pull/572.diff","patch_url":"https://github.com/btcsuite/btcd/pull/572.patch","issue_url":"https://api.github.com/repos/btcsuite/btcd/issues/572","number":572,"state":"open","locked":false,"title":"wire: Implement sendheaders command","user":{"login":"dajohi","id":3308193,"avatar_url":"https://avatars.githubusercontent.com/u/3308193?v=3","gravatar_id":"","url":"https://api.github.com/users/dajohi","html_url":"https://github.com/dajohi","followers_url":"https://api.github.com/users/dajohi/followers","following_url":"https://api.github.com/users/dajohi/following{/other_user}","gists_url":"https://api.github.com/users/dajohi/gists{/gist_id}","starred_url":"https://api.github.com/users/dajohi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dajohi/subscriptions","organizations_url":"https://api.github.com/users/dajohi/orgs","repos_url":"https://api.github.com/users/dajohi/repos","events_url":"https://api.github.com/users/dajohi/events{/privacy}","received_events_url":"https://api.github.com/users/dajohi/received_events","type":"User","site_admin":false},"body":"sendheaders is used to request the peer send headers commands instead of\r\ninv commands when announcing new blocks.\r\n\r\nBump protocol version to 70012.\r\nThis mimics Bitcoin Core commit 50262d89531692473ff557c1061aee22aa4cca1c\n\n<!-- Reviewable:start -->\n[<img src=\"https://reviewable.io/review_button.png\" height=40 alt=\"Review on Reviewable\"/>](https://reviewable.io/reviews/btcsuite/btcd/572)\n<!-- Reviewable:end -->\n","created_at":"2015-12-02T19:58:16Z","updated_at":"2016-02-03T23:41:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"34ea7b30f99236bb8fb326ca6b3bc7fc423a8456","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/btcsuite/btcd/pulls/572/commits","review_comments_url":"https://api.github.com/repos/btcsuite/btcd/pulls/572/comments","review_comment_url":"https://api.github.com/repos/btcsuite/btcd/pulls/comments{/number}","comments_url":"https://api.github.com/repos/btcsuite/btcd/issues/572/comments","statuses_url":"https://api.github.com/repos/btcsuite/btcd/statuses/d4a3ae1a56fdcbd7eb1a45b3f4dd93c2d3c575de","head":{"label":"dajohi:sendheaders","ref":"sendheaders","sha":"d4a3ae1a56fdcbd7eb1a45b3f4dd93c2d3c575de","user":{"login":"dajohi","id":3308193,"avatar_url":"https://avatars.githubusercontent.com/u/3308193?v=3","gravatar_id":"","url":"https://api.github.com/users/dajohi","html_url":"https://github.com/dajohi","followers_url":"https://api.github.com/users/dajohi/followers","following_url":"https://api.github.com/users/dajohi/following{/other_user}","gists_url":"https://api.github.com/users/dajohi/gists{/gist_id}","starred_url":"https://api.github.com/users/dajohi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dajohi/subscriptions","organizations_url":"https://api.github.com/users/dajohi/orgs","repos_url":"https://api.github.com/users/dajohi/repos","events_url":"https://api.github.com/users/dajohi/events{/privacy}","received_events_url":"https://api.github.com/users/dajohi/received_events","type":"User","site_admin":false},"repo":{"id":30096355,"name":"btcd","full_name":"dajohi/btcd","owner":{"login":"dajohi","id":3308193,"avatar_url":"https://avatars.githubusercontent.com/u/3308193?v=3","gravatar_id":"","url":"https://api.github.com/users/dajohi","html_url":"https://github.com/dajohi","followers_url":"https://api.github.com/users/dajohi/followers","following_url":"https://api.github.com/users/dajohi/following{/other_user}","gists_url":"https://api.github.com/users/dajohi/gists{/gist_id}","starred_url":"https://api.github.com/users/dajohi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dajohi/subscriptions","organizations_url":"https://api.github.com/users/dajohi/orgs","repos_url":"https://api.github.com/users/dajohi/repos","events_url":"https://api.github.com/users/dajohi/events{/privacy}","received_events_url":"https://api.github.com/users/dajohi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dajohi/btcd","description":"An alternative full node bitcoin implementation written in Go (golang)","fork":true,"url":"https://api.github.com/repos/dajohi/btcd","forks_url":"https://api.github.com/repos/dajohi/btcd/forks","keys_url":"https://api.github.com/repos/dajohi/btcd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dajohi/btcd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dajohi/btcd/teams","hooks_url":"https://api.github.com/repos/dajohi/btcd/hooks","issue_events_url":"https://api.github.com/repos/dajohi/btcd/issues/events{/number}","events_url":"https://api.github.com/repos/dajohi/btcd/events","assignees_url":"https://api.github.com/repos/dajohi/btcd/assignees{/user}","branches_url":"https://api.github.com/repos/dajohi/btcd/branches{/branch}","tags_url":"https://api.github.com/repos/dajohi/btcd/tags","blobs_url":"https://api.github.com/repos/dajohi/btcd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dajohi/btcd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dajohi/btcd/git/refs{/sha}","trees_url":"https://api.github.com/repos/dajohi/btcd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dajohi/btcd/statuses/{sha}","languages_url":"https://api.github.com/repos/dajohi/btcd/languages","stargazers_url":"https://api.github.com/repos/dajohi/btcd/stargazers","contributors_url":"https://api.github.com/repos/dajohi/btcd/contributors","subscribers_url":"https://api.github.com/repos/dajohi/btcd/subscribers","subscription_url":"https://api.github.com/repos/dajohi/btcd/subscription","commits_url":"https://api.github.com/repos/dajohi/btcd/commits{/sha}","git_commits_url":"https://api.github.com/repos/dajohi/btcd/git/commits{/sha}","comments_url":"https://api.github.com/repos/dajohi/btcd/comments{/number}","issue_comment_url":"https://api.github.com/repos/dajohi/btcd/issues/comments{/number}","contents_url":"https://api.github.com/repos/dajohi/btcd/contents/{+path}","compare_url":"https://api.github.com/repos/dajohi/btcd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dajohi/btcd/merges","archive_url":"https://api.github.com/repos/dajohi/btcd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dajohi/btcd/downloads","issues_url":"https://api.github.com/repos/dajohi/btcd/issues{/number}","pulls_url":"https://api.github.com/repos/dajohi/btcd/pulls{/number}","milestones_url":"https://api.github.com/repos/dajohi/btcd/milestones{/number}","notifications_url":"https://api.github.com/repos/dajohi/btcd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dajohi/btcd/labels{/name}","releases_url":"https://api.github.com/repos/dajohi/btcd/releases{/id}","deployments_url":"https://api.github.com/repos/dajohi/btcd/deployments","created_at":"2015-01-31T00:00:38Z","updated_at":"2015-03-19T19:14:12Z","pushed_at":"2016-02-03T19:59:07Z","git_url":"git://github.com/dajohi/btcd.git","ssh_url":"git@github.com:dajohi/btcd.git","clone_url":"https://github.com/dajohi/btcd.git","svn_url":"https://github.com/dajohi/btcd","homepage":null,"size":9434,"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":"master"}},"base":{"label":"btcsuite:master","ref":"master","sha":"c7e6c1e88f74bb399233f573476d80e964165aee","user":{"login":"btcsuite","id":10235229,"avatar_url":"https://avatars.githubusercontent.com/u/10235229?v=3","gravatar_id":"","url":"https://api.github.com/users/btcsuite","html_url":"https://github.com/btcsuite","followers_url":"https://api.github.com/users/btcsuite/followers","following_url":"https://api.github.com/users/btcsuite/following{/other_user}","gists_url":"https://api.github.com/users/btcsuite/gists{/gist_id}","starred_url":"https://api.github.com/users/btcsuite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/btcsuite/subscriptions","organizations_url":"https://api.github.com/users/btcsuite/orgs","repos_url":"https://api.github.com/users/btcsuite/repos","events_url":"https://api.github.com/users/btcsuite/events{/privacy}","received_events_url":"https://api.github.com/users/btcsuite/received_events","type":"Organization","site_admin":false},"repo":{"id":11931032,"name":"btcd","full_name":"btcsuite/btcd","owner":{"login":"btcsuite","id":10235229,"avatar_url":"https://avatars.githubusercontent.com/u/10235229?v=3","gravatar_id":"","url":"https://api.github.com/users/btcsuite","html_url":"https://github.com/btcsuite","followers_url":"https://api.github.com/users/btcsuite/followers","following_url":"https://api.github.com/users/btcsuite/following{/other_user}","gists_url":"https://api.github.com/users/btcsuite/gists{/gist_id}","starred_url":"https://api.github.com/users/btcsuite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/btcsuite/subscriptions","organizations_url":"https://api.github.com/users/btcsuite/orgs","repos_url":"https://api.github.com/users/btcsuite/repos","events_url":"https://api.github.com/users/btcsuite/events{/privacy}","received_events_url":"https://api.github.com/users/btcsuite/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/btcsuite/btcd","description":"An alternative full node bitcoin implementation written in Go (golang)","fork":false,"url":"https://api.github.com/repos/btcsuite/btcd","forks_url":"https://api.github.com/repos/btcsuite/btcd/forks","keys_url":"https://api.github.com/repos/btcsuite/btcd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/btcsuite/btcd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/btcsuite/btcd/teams","hooks_url":"https://api.github.com/repos/btcsuite/btcd/hooks","issue_events_url":"https://api.github.com/repos/btcsuite/btcd/issues/events{/number}","events_url":"https://api.github.com/repos/btcsuite/btcd/events","assignees_url":"https://api.github.com/repos/btcsuite/btcd/assignees{/user}","branches_url":"https://api.github.com/repos/btcsuite/btcd/branches{/branch}","tags_url":"https://api.github.com/repos/btcsuite/btcd/tags","blobs_url":"https://api.github.com/repos/btcsuite/btcd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/btcsuite/btcd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/btcsuite/btcd/git/refs{/sha}","trees_url":"https://api.github.com/repos/btcsuite/btcd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/btcsuite/btcd/statuses/{sha}","languages_url":"https://api.github.com/repos/btcsuite/btcd/languages","stargazers_url":"https://api.github.com/repos/btcsuite/btcd/stargazers","contributors_url":"https://api.github.com/repos/btcsuite/btcd/contributors","subscribers_url":"https://api.github.com/repos/btcsuite/btcd/subscribers","subscription_url":"https://api.github.com/repos/btcsuite/btcd/subscription","commits_url":"https://api.github.com/repos/btcsuite/btcd/commits{/sha}","git_commits_url":"https://api.github.com/repos/btcsuite/btcd/git/commits{/sha}","comments_url":"https://api.github.com/repos/btcsuite/btcd/comments{/number}","issue_comment_url":"https://api.github.com/repos/btcsuite/btcd/issues/comments{/number}","contents_url":"https://api.github.com/repos/btcsuite/btcd/contents/{+path}","compare_url":"https://api.github.com/repos/btcsuite/btcd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/btcsuite/btcd/merges","archive_url":"https://api.github.com/repos/btcsuite/btcd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/btcsuite/btcd/downloads","issues_url":"https://api.github.com/repos/btcsuite/btcd/issues{/number}","pulls_url":"https://api.github.com/repos/btcsuite/btcd/pulls{/number}","milestones_url":"https://api.github.com/repos/btcsuite/btcd/milestones{/number}","notifications_url":"https://api.github.com/repos/btcsuite/btcd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/btcsuite/btcd/labels{/name}","releases_url":"https://api.github.com/repos/btcsuite/btcd/releases{/id}","deployments_url":"https://api.github.com/repos/btcsuite/btcd/deployments","created_at":"2013-08-06T18:10:52Z","updated_at":"2016-01-29T00:38:19Z","pushed_at":"2016-02-03T19:59:12Z","git_url":"git://github.com/btcsuite/btcd.git","ssh_url":"git@github.com:btcsuite/btcd.git","clone_url":"https://github.com/btcsuite/btcd.git","svn_url":"https://github.com/btcsuite/btcd","homepage":"https://github.com/btcsuite/btcd/blob/master/docs/README.md","size":15266,"stargazers_count":775,"watchers_count":775,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":171,"mirror_url":null,"open_issues_count":52,"forks":171,"open_issues":52,"watchers":775,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/btcsuite/btcd/pulls/572"},"html":{"href":"https://github.com/btcsuite/btcd/pull/572"},"issue":{"href":"https://api.github.com/repos/btcsuite/btcd/issues/572"},"comments":{"href":"https://api.github.com/repos/btcsuite/btcd/issues/572/comments"},"review_comments":{"href":"https://api.github.com/repos/btcsuite/btcd/pulls/572/comments"},"review_comment":{"href":"https://api.github.com/repos/btcsuite/btcd/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/btcsuite/btcd/pulls/572/commits"},"statuses":{"href":"https://api.github.com/repos/btcsuite/btcd/statuses/d4a3ae1a56fdcbd7eb1a45b3f4dd93c2d3c575de"}}}}