{"action":"created","comment":{"url":"https://api.github.com/repos/iotexproject/iotex-core/pulls/comments/239924038","pull_request_review_id":182844566,"id":239924038,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzOTkyNDAzOA==","diff_hunk":"@@ -154,7 +163,8 @@ func (bs *blockSyncer) ProcessSyncRequest(sender string, sync *pb.BlockSync) err\n \t\t\treturn err\n \t\t}\n \t\t// TODO: send back multiple blocks in one shot\n-\t\tif err := bs.p2p.Tell(bs.bc.ChainID(), node.NewTCPNode(sender), &pb.BlockContainer{Block: blk.ConvertToBlockPb()}); err != nil {\n+\t\tctx := p2p.WitContext(context.Background(), p2p.Context{ChainID: bs.bc.ChainID()})\n+\t\tif err := bs.p2p.Unicast(ctx, node.NewTCPNode(sender), &pb.BlockContainer{Block: blk.ConvertToBlockPb()}); err != nil {","path":"blocksync/blocksync.go","position":72,"original_position":72,"commit_id":"77d1299a7958972e4b52bfeeb198282b48fc6032","original_commit_id":"77d1299a7958972e4b52bfeeb198282b48fc6032","user":{"login":"golangcibot","id":42910462,"node_id":"MDQ6VXNlcjQyOTEwNDYy","avatar_url":"https://avatars1.githubusercontent.com/u/42910462?v=4","gravatar_id":"","url":"https://api.github.com/users/golangcibot","html_url":"https://github.com/golangcibot","followers_url":"https://api.github.com/users/golangcibot/followers","following_url":"https://api.github.com/users/golangcibot/following{/other_user}","gists_url":"https://api.github.com/users/golangcibot/gists{/gist_id}","starred_url":"https://api.github.com/users/golangcibot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/golangcibot/subscriptions","organizations_url":"https://api.github.com/users/golangcibot/orgs","repos_url":"https://api.github.com/users/golangcibot/repos","events_url":"https://api.github.com/users/golangcibot/events{/privacy}","received_events_url":"https://api.github.com/users/golangcibot/received_events","type":"User","site_admin":false},"body":"line is 121 characters (from `lll`)","created_at":"2018-12-07T19:39:58Z","updated_at":"2018-12-07T19:39:59Z","html_url":"https://github.com/iotexproject/iotex-core/pull/360#discussion_r239924038","pull_request_url":"https://api.github.com/repos/iotexproject/iotex-core/pulls/360","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/iotexproject/iotex-core/pulls/comments/239924038"},"html":{"href":"https://github.com/iotexproject/iotex-core/pull/360#discussion_r239924038"},"pull_request":{"href":"https://api.github.com/repos/iotexproject/iotex-core/pulls/360"}}},"pull_request":{"url":"https://api.github.com/repos/iotexproject/iotex-core/pulls/360","id":236972613,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM2OTcyNjEz","html_url":"https://github.com/iotexproject/iotex-core/pull/360","diff_url":"https://github.com/iotexproject/iotex-core/pull/360.diff","patch_url":"https://github.com/iotexproject/iotex-core/pull/360.patch","issue_url":"https://api.github.com/repos/iotexproject/iotex-core/issues/360","number":360,"state":"open","locked":false,"title":"IOTEX-171 Migrate block sync module to use new P2P agent","user":{"login":"zjshen14","id":35021395,"node_id":"MDQ6VXNlcjM1MDIxMzk1","avatar_url":"https://avatars3.githubusercontent.com/u/35021395?v=4","gravatar_id":"","url":"https://api.github.com/users/zjshen14","html_url":"https://github.com/zjshen14","followers_url":"https://api.github.com/users/zjshen14/followers","following_url":"https://api.github.com/users/zjshen14/following{/other_user}","gists_url":"https://api.github.com/users/zjshen14/gists{/gist_id}","starred_url":"https://api.github.com/users/zjshen14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zjshen14/subscriptions","organizations_url":"https://api.github.com/users/zjshen14/orgs","repos_url":"https://api.github.com/users/zjshen14/repos","events_url":"https://api.github.com/users/zjshen14/events{/privacy}","received_events_url":"https://api.github.com/users/zjshen14/received_events","type":"User","site_admin":false},"body":"Only the last commit is related.\r\n\r\nIt depends on https://github.com/iotexproject/iotex-core/pull/355","created_at":"2018-12-07T19:39:03Z","updated_at":"2018-12-07T19:39:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"68b08a36915246e8f3ae2670977666235eeb9009","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[{"name":"protocol-team","id":2774529,"node_id":"MDQ6VGVhbTI3NzQ1Mjk=","slug":"protocol-team","description":"protocol dev team","privacy":"closed","url":"https://api.github.com/teams/2774529","members_url":"https://api.github.com/teams/2774529/members{/member}","repositories_url":"https://api.github.com/teams/2774529/repos","permission":"pull"}],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/iotexproject/iotex-core/pulls/360/commits","review_comments_url":"https://api.github.com/repos/iotexproject/iotex-core/pulls/360/comments","review_comment_url":"https://api.github.com/repos/iotexproject/iotex-core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/iotexproject/iotex-core/issues/360/comments","statuses_url":"https://api.github.com/repos/iotexproject/iotex-core/statuses/77d1299a7958972e4b52bfeeb198282b48fc6032","head":{"label":"zjshen14:p2p","ref":"p2p","sha":"77d1299a7958972e4b52bfeeb198282b48fc6032","user":{"login":"zjshen14","id":35021395,"node_id":"MDQ6VXNlcjM1MDIxMzk1","avatar_url":"https://avatars3.githubusercontent.com/u/35021395?v=4","gravatar_id":"","url":"https://api.github.com/users/zjshen14","html_url":"https://github.com/zjshen14","followers_url":"https://api.github.com/users/zjshen14/followers","following_url":"https://api.github.com/users/zjshen14/following{/other_user}","gists_url":"https://api.github.com/users/zjshen14/gists{/gist_id}","starred_url":"https://api.github.com/users/zjshen14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zjshen14/subscriptions","organizations_url":"https://api.github.com/users/zjshen14/orgs","repos_url":"https://api.github.com/users/zjshen14/repos","events_url":"https://api.github.com/users/zjshen14/events{/privacy}","received_events_url":"https://api.github.com/users/zjshen14/received_events","type":"User","site_admin":false},"repo":{"id":147471673,"node_id":"MDEwOlJlcG9zaXRvcnkxNDc0NzE2NzM=","name":"iotex-core","full_name":"zjshen14/iotex-core","private":false,"owner":{"login":"zjshen14","id":35021395,"node_id":"MDQ6VXNlcjM1MDIxMzk1","avatar_url":"https://avatars3.githubusercontent.com/u/35021395?v=4","gravatar_id":"","url":"https://api.github.com/users/zjshen14","html_url":"https://github.com/zjshen14","followers_url":"https://api.github.com/users/zjshen14/followers","following_url":"https://api.github.com/users/zjshen14/following{/other_user}","gists_url":"https://api.github.com/users/zjshen14/gists{/gist_id}","starred_url":"https://api.github.com/users/zjshen14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zjshen14/subscriptions","organizations_url":"https://api.github.com/users/zjshen14/orgs","repos_url":"https://api.github.com/users/zjshen14/repos","events_url":"https://api.github.com/users/zjshen14/events{/privacy}","received_events_url":"https://api.github.com/users/zjshen14/received_events","type":"User","site_admin":false},"html_url":"https://github.com/zjshen14/iotex-core","description":"Connecting the physical world, block by block.","fork":true,"url":"https://api.github.com/repos/zjshen14/iotex-core","forks_url":"https://api.github.com/repos/zjshen14/iotex-core/forks","keys_url":"https://api.github.com/repos/zjshen14/iotex-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zjshen14/iotex-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zjshen14/iotex-core/teams","hooks_url":"https://api.github.com/repos/zjshen14/iotex-core/hooks","issue_events_url":"https://api.github.com/repos/zjshen14/iotex-core/issues/events{/number}","events_url":"https://api.github.com/repos/zjshen14/iotex-core/events","assignees_url":"https://api.github.com/repos/zjshen14/iotex-core/assignees{/user}","branches_url":"https://api.github.com/repos/zjshen14/iotex-core/branches{/branch}","tags_url":"https://api.github.com/repos/zjshen14/iotex-core/tags","blobs_url":"https://api.github.com/repos/zjshen14/iotex-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zjshen14/iotex-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zjshen14/iotex-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/zjshen14/iotex-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zjshen14/iotex-core/statuses/{sha}","languages_url":"https://api.github.com/repos/zjshen14/iotex-core/languages","stargazers_url":"https://api.github.com/repos/zjshen14/iotex-core/stargazers","contributors_url":"https://api.github.com/repos/zjshen14/iotex-core/contributors","subscribers_url":"https://api.github.com/repos/zjshen14/iotex-core/subscribers","subscription_url":"https://api.github.com/repos/zjshen14/iotex-core/subscription","commits_url":"https://api.github.com/repos/zjshen14/iotex-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/zjshen14/iotex-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/zjshen14/iotex-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/zjshen14/iotex-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/zjshen14/iotex-core/contents/{+path}","compare_url":"https://api.github.com/repos/zjshen14/iotex-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zjshen14/iotex-core/merges","archive_url":"https://api.github.com/repos/zjshen14/iotex-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zjshen14/iotex-core/downloads","issues_url":"https://api.github.com/repos/zjshen14/iotex-core/issues{/number}","pulls_url":"https://api.github.com/repos/zjshen14/iotex-core/pulls{/number}","milestones_url":"https://api.github.com/repos/zjshen14/iotex-core/milestones{/number}","notifications_url":"https://api.github.com/repos/zjshen14/iotex-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zjshen14/iotex-core/labels{/name}","releases_url":"https://api.github.com/repos/zjshen14/iotex-core/releases{/id}","deployments_url":"https://api.github.com/repos/zjshen14/iotex-core/deployments","created_at":"2018-09-05T06:38:20Z","updated_at":"2018-12-06T22:49:25Z","pushed_at":"2018-12-07T19:37:53Z","git_url":"git://github.com/zjshen14/iotex-core.git","ssh_url":"git@github.com:zjshen14/iotex-core.git","clone_url":"https://github.com/zjshen14/iotex-core.git","svn_url":"https://github.com/zjshen14/iotex-core","homepage":"https://iotex.io","size":7948,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"iotexproject:master","ref":"master","sha":"53cd2cf543f9e7e4554c1a9519a3571d00e3a02d","user":{"login":"iotexproject","id":34317526,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM0MzE3NTI2","avatar_url":"https://avatars3.githubusercontent.com/u/34317526?v=4","gravatar_id":"","url":"https://api.github.com/users/iotexproject","html_url":"https://github.com/iotexproject","followers_url":"https://api.github.com/users/iotexproject/followers","following_url":"https://api.github.com/users/iotexproject/following{/other_user}","gists_url":"https://api.github.com/users/iotexproject/gists{/gist_id}","starred_url":"https://api.github.com/users/iotexproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iotexproject/subscriptions","organizations_url":"https://api.github.com/users/iotexproject/orgs","repos_url":"https://api.github.com/users/iotexproject/repos","events_url":"https://api.github.com/users/iotexproject/events{/privacy}","received_events_url":"https://api.github.com/users/iotexproject/received_events","type":"Organization","site_admin":false},"repo":{"id":130281002,"node_id":"MDEwOlJlcG9zaXRvcnkxMzAyODEwMDI=","name":"iotex-core","full_name":"iotexproject/iotex-core","private":false,"owner":{"login":"iotexproject","id":34317526,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM0MzE3NTI2","avatar_url":"https://avatars3.githubusercontent.com/u/34317526?v=4","gravatar_id":"","url":"https://api.github.com/users/iotexproject","html_url":"https://github.com/iotexproject","followers_url":"https://api.github.com/users/iotexproject/followers","following_url":"https://api.github.com/users/iotexproject/following{/other_user}","gists_url":"https://api.github.com/users/iotexproject/gists{/gist_id}","starred_url":"https://api.github.com/users/iotexproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iotexproject/subscriptions","organizations_url":"https://api.github.com/users/iotexproject/orgs","repos_url":"https://api.github.com/users/iotexproject/repos","events_url":"https://api.github.com/users/iotexproject/events{/privacy}","received_events_url":"https://api.github.com/users/iotexproject/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/iotexproject/iotex-core","description":"Official Go implementation of the IoTeX protocol","fork":false,"url":"https://api.github.com/repos/iotexproject/iotex-core","forks_url":"https://api.github.com/repos/iotexproject/iotex-core/forks","keys_url":"https://api.github.com/repos/iotexproject/iotex-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iotexproject/iotex-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iotexproject/iotex-core/teams","hooks_url":"https://api.github.com/repos/iotexproject/iotex-core/hooks","issue_events_url":"https://api.github.com/repos/iotexproject/iotex-core/issues/events{/number}","events_url":"https://api.github.com/repos/iotexproject/iotex-core/events","assignees_url":"https://api.github.com/repos/iotexproject/iotex-core/assignees{/user}","branches_url":"https://api.github.com/repos/iotexproject/iotex-core/branches{/branch}","tags_url":"https://api.github.com/repos/iotexproject/iotex-core/tags","blobs_url":"https://api.github.com/repos/iotexproject/iotex-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iotexproject/iotex-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iotexproject/iotex-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/iotexproject/iotex-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iotexproject/iotex-core/statuses/{sha}","languages_url":"https://api.github.com/repos/iotexproject/iotex-core/languages","stargazers_url":"https://api.github.com/repos/iotexproject/iotex-core/stargazers","contributors_url":"https://api.github.com/repos/iotexproject/iotex-core/contributors","subscribers_url":"https://api.github.com/repos/iotexproject/iotex-core/subscribers","subscription_url":"https://api.github.com/repos/iotexproject/iotex-core/subscription","commits_url":"https://api.github.com/repos/iotexproject/iotex-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/iotexproject/iotex-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/iotexproject/iotex-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/iotexproject/iotex-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/iotexproject/iotex-core/contents/{+path}","compare_url":"https://api.github.com/repos/iotexproject/iotex-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iotexproject/iotex-core/merges","archive_url":"https://api.github.com/repos/iotexproject/iotex-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iotexproject/iotex-core/downloads","issues_url":"https://api.github.com/repos/iotexproject/iotex-core/issues{/number}","pulls_url":"https://api.github.com/repos/iotexproject/iotex-core/pulls{/number}","milestones_url":"https://api.github.com/repos/iotexproject/iotex-core/milestones{/number}","notifications_url":"https://api.github.com/repos/iotexproject/iotex-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iotexproject/iotex-core/labels{/name}","releases_url":"https://api.github.com/repos/iotexproject/iotex-core/releases{/id}","deployments_url":"https://api.github.com/repos/iotexproject/iotex-core/deployments","created_at":"2018-04-19T22:56:20Z","updated_at":"2018-12-07T19:02:37Z","pushed_at":"2018-12-07T19:39:04Z","git_url":"git://github.com/iotexproject/iotex-core.git","ssh_url":"git@github.com:iotexproject/iotex-core.git","clone_url":"https://github.com/iotexproject/iotex-core.git","svn_url":"https://github.com/iotexproject/iotex-core","homepage":"https://iotex.io","size":7973,"stargazers_count":815,"watchers_count":815,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":100,"mirror_url":null,"archived":false,"open_issues_count":21,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":100,"open_issues":21,"watchers":815,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/iotexproject/iotex-core/pulls/360"},"html":{"href":"https://github.com/iotexproject/iotex-core/pull/360"},"issue":{"href":"https://api.github.com/repos/iotexproject/iotex-core/issues/360"},"comments":{"href":"https://api.github.com/repos/iotexproject/iotex-core/issues/360/comments"},"review_comments":{"href":"https://api.github.com/repos/iotexproject/iotex-core/pulls/360/comments"},"review_comment":{"href":"https://api.github.com/repos/iotexproject/iotex-core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/iotexproject/iotex-core/pulls/360/commits"},"statuses":{"href":"https://api.github.com/repos/iotexproject/iotex-core/statuses/77d1299a7958972e4b52bfeeb198282b48fc6032"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"golangcibot"}}