{"action":"created","comment":{"url":"https://api.github.com/repos/iotexproject/iotex-core/pulls/comments/225654823","pull_request_review_id":165302071,"id":225654823,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNTY1NDgyMw==","diff_hunk":"@@ -0,0 +1,57 @@\n+// Copyright (c) 2018 IoTeX\n+// This is an alpha (internal) release and is not suitable for production. This source code is provided 'as is' and no\n+// warranties are given as to title or non-infringement, merchantability or fitness for purpose and, to the extent\n+// permitted by law, all liability for your use of the code is disclaimed. This source code is governed by Apache\n+// License 2.0 that can be found in the LICENSE file.\n+\n+package subchain\n+\n+import (\n+\t\"math/big\"\n+\n+\t\"github.com/iotexproject/iotex-core/action\"\n+\t\"github.com/iotexproject/iotex-core/pkg/errcode\"\n+\t\"github.com/iotexproject/iotex-core/pkg/hash\"\n+\t\"github.com/iotexproject/iotex-core/pkg/keypair\"\n+)\n+\n+// StartSubChain represents start sub-chain message\n+type StartSubChain struct {\n+\taction.AbstractAction\n+\tchainID            uint32\n+\tsecurityDeposit    big.Int\n+\toperationDeposit   big.Int\n+\tstartHeight        uint64\n+\tparentHeightOffset uint64\n+}\n+\n+// Hash returns the hash of starting sub-chain message\n+func (start *StartSubChain) Hash() hash.Hash32B {\n+\t// TODO: implement hash generation\n+\tvar hash hash.Hash32B\n+\treturn hash\n+}\n+\n+// PutBlock represents put a sub-chain block message\n+type PutBlock struct {\n+\taction.AbstractAction\n+\tchainID            uint32","path":"action/subchain/message.go","position":38,"original_position":38,"commit_id":"50098094f025d448c3c3c0f6782f0ce12e85e32d","original_commit_id":"50098094f025d448c3c3c0f6782f0ce12e85e32d","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":"`chainID` is unused","created_at":"2018-10-16T18:22:25Z","updated_at":"2018-10-16T18:22:26Z","html_url":"https://github.com/iotexproject/iotex-core/pull/169#discussion_r225654823","pull_request_url":"https://api.github.com/repos/iotexproject/iotex-core/pulls/169","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/iotexproject/iotex-core/pulls/comments/225654823"},"html":{"href":"https://github.com/iotexproject/iotex-core/pull/169#discussion_r225654823"},"pull_request":{"href":"https://api.github.com/repos/iotexproject/iotex-core/pulls/169"}}},"pull_request":{"url":"https://api.github.com/repos/iotexproject/iotex-core/pulls/169","id":222600150,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIyNjAwMTUw","html_url":"https://github.com/iotexproject/iotex-core/pull/169","diff_url":"https://github.com/iotexproject/iotex-core/pull/169.diff","patch_url":"https://github.com/iotexproject/iotex-core/pull/169.patch","issue_url":"https://api.github.com/repos/iotexproject/iotex-core/issues/169","number":169,"state":"open","locked":false,"title":"IOTEX-88 Unify action size calculation and byte stream generation","user":{"login":"CoderZhi","id":35643171,"node_id":"MDQ6VXNlcjM1NjQzMTcx","avatar_url":"https://avatars2.githubusercontent.com/u/35643171?v=4","gravatar_id":"","url":"https://api.github.com/users/CoderZhi","html_url":"https://github.com/CoderZhi","followers_url":"https://api.github.com/users/CoderZhi/followers","following_url":"https://api.github.com/users/CoderZhi/following{/other_user}","gists_url":"https://api.github.com/users/CoderZhi/gists{/gist_id}","starred_url":"https://api.github.com/users/CoderZhi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CoderZhi/subscriptions","organizations_url":"https://api.github.com/users/CoderZhi/orgs","repos_url":"https://api.github.com/users/CoderZhi/repos","events_url":"https://api.github.com/users/CoderZhi/events{/privacy}","received_events_url":"https://api.github.com/users/CoderZhi/received_events","type":"User","site_admin":false},"body":"Use byteutil in the two functions. This is based on 168, will rebase onto it once its accepted","created_at":"2018-10-12T22:19:04Z","updated_at":"2018-10-16T18:22:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"151f7272b53030ee24ab120872e255c117535b2a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/iotexproject/iotex-core/pulls/169/commits","review_comments_url":"https://api.github.com/repos/iotexproject/iotex-core/pulls/169/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/169/comments","statuses_url":"https://api.github.com/repos/iotexproject/iotex-core/statuses/50098094f025d448c3c3c0f6782f0ce12e85e32d","head":{"label":"CoderZhi:stop_subchain_action","ref":"stop_subchain_action","sha":"50098094f025d448c3c3c0f6782f0ce12e85e32d","user":{"login":"CoderZhi","id":35643171,"node_id":"MDQ6VXNlcjM1NjQzMTcx","avatar_url":"https://avatars2.githubusercontent.com/u/35643171?v=4","gravatar_id":"","url":"https://api.github.com/users/CoderZhi","html_url":"https://github.com/CoderZhi","followers_url":"https://api.github.com/users/CoderZhi/followers","following_url":"https://api.github.com/users/CoderZhi/following{/other_user}","gists_url":"https://api.github.com/users/CoderZhi/gists{/gist_id}","starred_url":"https://api.github.com/users/CoderZhi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CoderZhi/subscriptions","organizations_url":"https://api.github.com/users/CoderZhi/orgs","repos_url":"https://api.github.com/users/CoderZhi/repos","events_url":"https://api.github.com/users/CoderZhi/events{/privacy}","received_events_url":"https://api.github.com/users/CoderZhi/received_events","type":"User","site_admin":false},"repo":{"id":149684526,"node_id":"MDEwOlJlcG9zaXRvcnkxNDk2ODQ1MjY=","name":"iotex-core","full_name":"CoderZhi/iotex-core","private":false,"owner":{"login":"CoderZhi","id":35643171,"node_id":"MDQ6VXNlcjM1NjQzMTcx","avatar_url":"https://avatars2.githubusercontent.com/u/35643171?v=4","gravatar_id":"","url":"https://api.github.com/users/CoderZhi","html_url":"https://github.com/CoderZhi","followers_url":"https://api.github.com/users/CoderZhi/followers","following_url":"https://api.github.com/users/CoderZhi/following{/other_user}","gists_url":"https://api.github.com/users/CoderZhi/gists{/gist_id}","starred_url":"https://api.github.com/users/CoderZhi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CoderZhi/subscriptions","organizations_url":"https://api.github.com/users/CoderZhi/orgs","repos_url":"https://api.github.com/users/CoderZhi/repos","events_url":"https://api.github.com/users/CoderZhi/events{/privacy}","received_events_url":"https://api.github.com/users/CoderZhi/received_events","type":"User","site_admin":false},"html_url":"https://github.com/CoderZhi/iotex-core","description":"Connecting the physical world, block by block.","fork":true,"url":"https://api.github.com/repos/CoderZhi/iotex-core","forks_url":"https://api.github.com/repos/CoderZhi/iotex-core/forks","keys_url":"https://api.github.com/repos/CoderZhi/iotex-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CoderZhi/iotex-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CoderZhi/iotex-core/teams","hooks_url":"https://api.github.com/repos/CoderZhi/iotex-core/hooks","issue_events_url":"https://api.github.com/repos/CoderZhi/iotex-core/issues/events{/number}","events_url":"https://api.github.com/repos/CoderZhi/iotex-core/events","assignees_url":"https://api.github.com/repos/CoderZhi/iotex-core/assignees{/user}","branches_url":"https://api.github.com/repos/CoderZhi/iotex-core/branches{/branch}","tags_url":"https://api.github.com/repos/CoderZhi/iotex-core/tags","blobs_url":"https://api.github.com/repos/CoderZhi/iotex-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CoderZhi/iotex-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CoderZhi/iotex-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/CoderZhi/iotex-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CoderZhi/iotex-core/statuses/{sha}","languages_url":"https://api.github.com/repos/CoderZhi/iotex-core/languages","stargazers_url":"https://api.github.com/repos/CoderZhi/iotex-core/stargazers","contributors_url":"https://api.github.com/repos/CoderZhi/iotex-core/contributors","subscribers_url":"https://api.github.com/repos/CoderZhi/iotex-core/subscribers","subscription_url":"https://api.github.com/repos/CoderZhi/iotex-core/subscription","commits_url":"https://api.github.com/repos/CoderZhi/iotex-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/CoderZhi/iotex-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/CoderZhi/iotex-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/CoderZhi/iotex-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/CoderZhi/iotex-core/contents/{+path}","compare_url":"https://api.github.com/repos/CoderZhi/iotex-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CoderZhi/iotex-core/merges","archive_url":"https://api.github.com/repos/CoderZhi/iotex-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CoderZhi/iotex-core/downloads","issues_url":"https://api.github.com/repos/CoderZhi/iotex-core/issues{/number}","pulls_url":"https://api.github.com/repos/CoderZhi/iotex-core/pulls{/number}","milestones_url":"https://api.github.com/repos/CoderZhi/iotex-core/milestones{/number}","notifications_url":"https://api.github.com/repos/CoderZhi/iotex-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CoderZhi/iotex-core/labels{/name}","releases_url":"https://api.github.com/repos/CoderZhi/iotex-core/releases{/id}","deployments_url":"https://api.github.com/repos/CoderZhi/iotex-core/deployments","created_at":"2018-09-20T23:54:21Z","updated_at":"2018-10-01T22:54:47Z","pushed_at":"2018-10-16T18:21:29Z","git_url":"git://github.com/CoderZhi/iotex-core.git","ssh_url":"git@github.com:CoderZhi/iotex-core.git","clone_url":"https://github.com/CoderZhi/iotex-core.git","svn_url":"https://github.com/CoderZhi/iotex-core","homepage":"https://iotex.io","size":6669,"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":"6933c1b1214c909699c0cb1bbc2f5899d46054bd","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-10-16T17:51:02Z","pushed_at":"2018-10-16T18:21:30Z","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":6636,"stargazers_count":789,"watchers_count":789,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":92,"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":92,"open_issues":21,"watchers":789,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/iotexproject/iotex-core/pulls/169"},"html":{"href":"https://github.com/iotexproject/iotex-core/pull/169"},"issue":{"href":"https://api.github.com/repos/iotexproject/iotex-core/issues/169"},"comments":{"href":"https://api.github.com/repos/iotexproject/iotex-core/issues/169/comments"},"review_comments":{"href":"https://api.github.com/repos/iotexproject/iotex-core/pulls/169/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/169/commits"},"statuses":{"href":"https://api.github.com/repos/iotexproject/iotex-core/statuses/50098094f025d448c3c3c0f6782f0ce12e85e32d"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"golangcibot"}}