{"action":"opened","number":161,"pull_request":{"url":"https://api.github.com/repos/seeleteam/go-seele/pulls/161","id":187308383,"html_url":"https://github.com/seeleteam/go-seele/pull/161","diff_url":"https://github.com/seeleteam/go-seele/pull/161.diff","patch_url":"https://github.com/seeleteam/go-seele/pull/161.patch","issue_url":"https://api.github.com/repos/seeleteam/go-seele/issues/161","number":161,"state":"open","locked":false,"title":"fix bugs in miner","user":{"login":"sufay","id":38659059,"avatar_url":"https://avatars0.githubusercontent.com/u/38659059?v=4","gravatar_id":"","url":"https://api.github.com/users/sufay","html_url":"https://github.com/sufay","followers_url":"https://api.github.com/users/sufay/followers","following_url":"https://api.github.com/users/sufay/following{/other_user}","gists_url":"https://api.github.com/users/sufay/gists{/gist_id}","starred_url":"https://api.github.com/users/sufay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sufay/subscriptions","organizations_url":"https://api.github.com/users/sufay/orgs","repos_url":"https://api.github.com/users/sufay/repos","events_url":"https://api.github.com/users/sufay/events{/privacy}","received_events_url":"https://api.github.com/users/sufay/received_events","type":"User","site_admin":false},"body":"fixes:\r\n1. as prepareNewBlock may cause an error, exception checking is necessary before changing the state of isFirstBlockPrepared. \r\n2. a stopped flag is used to prevent newTxCallback from invoking prepareNewBlock when the miner is stopped or unstarted\r\n3. add the wg field. when closing a multithreading procedure, we should wait for all threads to terminate. otherwise, there exist unstable factors for a long running system.\r\n\r\nmodify some comments.","created_at":"2018-05-10T21:10:18Z","updated_at":"2018-05-10T21:10:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/seeleteam/go-seele/pulls/161/commits","review_comments_url":"https://api.github.com/repos/seeleteam/go-seele/pulls/161/comments","review_comment_url":"https://api.github.com/repos/seeleteam/go-seele/pulls/comments{/number}","comments_url":"https://api.github.com/repos/seeleteam/go-seele/issues/161/comments","statuses_url":"https://api.github.com/repos/seeleteam/go-seele/statuses/926ac17279313c5aa6289bd3e60f0c4a3859532d","head":{"label":"sufay:dev","ref":"dev","sha":"926ac17279313c5aa6289bd3e60f0c4a3859532d","user":{"login":"sufay","id":38659059,"avatar_url":"https://avatars0.githubusercontent.com/u/38659059?v=4","gravatar_id":"","url":"https://api.github.com/users/sufay","html_url":"https://github.com/sufay","followers_url":"https://api.github.com/users/sufay/followers","following_url":"https://api.github.com/users/sufay/following{/other_user}","gists_url":"https://api.github.com/users/sufay/gists{/gist_id}","starred_url":"https://api.github.com/users/sufay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sufay/subscriptions","organizations_url":"https://api.github.com/users/sufay/orgs","repos_url":"https://api.github.com/users/sufay/repos","events_url":"https://api.github.com/users/sufay/events{/privacy}","received_events_url":"https://api.github.com/users/sufay/received_events","type":"User","site_admin":false},"repo":{"id":130707509,"name":"go-seele","full_name":"sufay/go-seele","owner":{"login":"sufay","id":38659059,"avatar_url":"https://avatars0.githubusercontent.com/u/38659059?v=4","gravatar_id":"","url":"https://api.github.com/users/sufay","html_url":"https://github.com/sufay","followers_url":"https://api.github.com/users/sufay/followers","following_url":"https://api.github.com/users/sufay/following{/other_user}","gists_url":"https://api.github.com/users/sufay/gists{/gist_id}","starred_url":"https://api.github.com/users/sufay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sufay/subscriptions","organizations_url":"https://api.github.com/users/sufay/orgs","repos_url":"https://api.github.com/users/sufay/repos","events_url":"https://api.github.com/users/sufay/events{/privacy}","received_events_url":"https://api.github.com/users/sufay/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sufay/go-seele","description":"Seele is powered by an up-scalable Neural Consensus protocol for high throughput concurrency among large scale heterogeneous nodes and is able to form a unique heterogeneous forest multi-chain ecosystem","fork":true,"url":"https://api.github.com/repos/sufay/go-seele","forks_url":"https://api.github.com/repos/sufay/go-seele/forks","keys_url":"https://api.github.com/repos/sufay/go-seele/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sufay/go-seele/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sufay/go-seele/teams","hooks_url":"https://api.github.com/repos/sufay/go-seele/hooks","issue_events_url":"https://api.github.com/repos/sufay/go-seele/issues/events{/number}","events_url":"https://api.github.com/repos/sufay/go-seele/events","assignees_url":"https://api.github.com/repos/sufay/go-seele/assignees{/user}","branches_url":"https://api.github.com/repos/sufay/go-seele/branches{/branch}","tags_url":"https://api.github.com/repos/sufay/go-seele/tags","blobs_url":"https://api.github.com/repos/sufay/go-seele/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sufay/go-seele/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sufay/go-seele/git/refs{/sha}","trees_url":"https://api.github.com/repos/sufay/go-seele/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sufay/go-seele/statuses/{sha}","languages_url":"https://api.github.com/repos/sufay/go-seele/languages","stargazers_url":"https://api.github.com/repos/sufay/go-seele/stargazers","contributors_url":"https://api.github.com/repos/sufay/go-seele/contributors","subscribers_url":"https://api.github.com/repos/sufay/go-seele/subscribers","subscription_url":"https://api.github.com/repos/sufay/go-seele/subscription","commits_url":"https://api.github.com/repos/sufay/go-seele/commits{/sha}","git_commits_url":"https://api.github.com/repos/sufay/go-seele/git/commits{/sha}","comments_url":"https://api.github.com/repos/sufay/go-seele/comments{/number}","issue_comment_url":"https://api.github.com/repos/sufay/go-seele/issues/comments{/number}","contents_url":"https://api.github.com/repos/sufay/go-seele/contents/{+path}","compare_url":"https://api.github.com/repos/sufay/go-seele/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sufay/go-seele/merges","archive_url":"https://api.github.com/repos/sufay/go-seele/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sufay/go-seele/downloads","issues_url":"https://api.github.com/repos/sufay/go-seele/issues{/number}","pulls_url":"https://api.github.com/repos/sufay/go-seele/pulls{/number}","milestones_url":"https://api.github.com/repos/sufay/go-seele/milestones{/number}","notifications_url":"https://api.github.com/repos/sufay/go-seele/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sufay/go-seele/labels{/name}","releases_url":"https://api.github.com/repos/sufay/go-seele/releases{/id}","deployments_url":"https://api.github.com/repos/sufay/go-seele/deployments","created_at":"2018-04-23T14:15:53Z","updated_at":"2018-05-10T20:48:20Z","pushed_at":"2018-05-10T20:48:19Z","git_url":"git://github.com/sufay/go-seele.git","ssh_url":"git@github.com:sufay/go-seele.git","clone_url":"https://github.com/sufay/go-seele.git","svn_url":"https://github.com/sufay/go-seele","homepage":"https://seele.pro","size":2914,"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":"lgpl-3.0","name":"GNU Lesser General Public License v3.0","spdx_id":"LGPL-3.0","url":"https://api.github.com/licenses/lgpl-3.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"dev"}},"base":{"label":"seeleteam:master","ref":"master","sha":"01c38a134bd6a6f56795b8652a5bf0a5bbeca764","user":{"login":"seeleteam","id":35519576,"avatar_url":"https://avatars1.githubusercontent.com/u/35519576?v=4","gravatar_id":"","url":"https://api.github.com/users/seeleteam","html_url":"https://github.com/seeleteam","followers_url":"https://api.github.com/users/seeleteam/followers","following_url":"https://api.github.com/users/seeleteam/following{/other_user}","gists_url":"https://api.github.com/users/seeleteam/gists{/gist_id}","starred_url":"https://api.github.com/users/seeleteam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seeleteam/subscriptions","organizations_url":"https://api.github.com/users/seeleteam/orgs","repos_url":"https://api.github.com/users/seeleteam/repos","events_url":"https://api.github.com/users/seeleteam/events{/privacy}","received_events_url":"https://api.github.com/users/seeleteam/received_events","type":"Organization","site_admin":false},"repo":{"id":119497847,"name":"go-seele","full_name":"seeleteam/go-seele","owner":{"login":"seeleteam","id":35519576,"avatar_url":"https://avatars1.githubusercontent.com/u/35519576?v=4","gravatar_id":"","url":"https://api.github.com/users/seeleteam","html_url":"https://github.com/seeleteam","followers_url":"https://api.github.com/users/seeleteam/followers","following_url":"https://api.github.com/users/seeleteam/following{/other_user}","gists_url":"https://api.github.com/users/seeleteam/gists{/gist_id}","starred_url":"https://api.github.com/users/seeleteam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seeleteam/subscriptions","organizations_url":"https://api.github.com/users/seeleteam/orgs","repos_url":"https://api.github.com/users/seeleteam/repos","events_url":"https://api.github.com/users/seeleteam/events{/privacy}","received_events_url":"https://api.github.com/users/seeleteam/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/seeleteam/go-seele","description":"Seele is powered by an up-scalable Neural Consensus protocol for high throughput concurrency among large scale heterogeneous nodes and is able to form a unique heterogeneous forest multi-chain ecosystem","fork":false,"url":"https://api.github.com/repos/seeleteam/go-seele","forks_url":"https://api.github.com/repos/seeleteam/go-seele/forks","keys_url":"https://api.github.com/repos/seeleteam/go-seele/keys{/key_id}","collaborators_url":"https://api.github.com/repos/seeleteam/go-seele/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/seeleteam/go-seele/teams","hooks_url":"https://api.github.com/repos/seeleteam/go-seele/hooks","issue_events_url":"https://api.github.com/repos/seeleteam/go-seele/issues/events{/number}","events_url":"https://api.github.com/repos/seeleteam/go-seele/events","assignees_url":"https://api.github.com/repos/seeleteam/go-seele/assignees{/user}","branches_url":"https://api.github.com/repos/seeleteam/go-seele/branches{/branch}","tags_url":"https://api.github.com/repos/seeleteam/go-seele/tags","blobs_url":"https://api.github.com/repos/seeleteam/go-seele/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/seeleteam/go-seele/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/seeleteam/go-seele/git/refs{/sha}","trees_url":"https://api.github.com/repos/seeleteam/go-seele/git/trees{/sha}","statuses_url":"https://api.github.com/repos/seeleteam/go-seele/statuses/{sha}","languages_url":"https://api.github.com/repos/seeleteam/go-seele/languages","stargazers_url":"https://api.github.com/repos/seeleteam/go-seele/stargazers","contributors_url":"https://api.github.com/repos/seeleteam/go-seele/contributors","subscribers_url":"https://api.github.com/repos/seeleteam/go-seele/subscribers","subscription_url":"https://api.github.com/repos/seeleteam/go-seele/subscription","commits_url":"https://api.github.com/repos/seeleteam/go-seele/commits{/sha}","git_commits_url":"https://api.github.com/repos/seeleteam/go-seele/git/commits{/sha}","comments_url":"https://api.github.com/repos/seeleteam/go-seele/comments{/number}","issue_comment_url":"https://api.github.com/repos/seeleteam/go-seele/issues/comments{/number}","contents_url":"https://api.github.com/repos/seeleteam/go-seele/contents/{+path}","compare_url":"https://api.github.com/repos/seeleteam/go-seele/compare/{base}...{head}","merges_url":"https://api.github.com/repos/seeleteam/go-seele/merges","archive_url":"https://api.github.com/repos/seeleteam/go-seele/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/seeleteam/go-seele/downloads","issues_url":"https://api.github.com/repos/seeleteam/go-seele/issues{/number}","pulls_url":"https://api.github.com/repos/seeleteam/go-seele/pulls{/number}","milestones_url":"https://api.github.com/repos/seeleteam/go-seele/milestones{/number}","notifications_url":"https://api.github.com/repos/seeleteam/go-seele/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/seeleteam/go-seele/labels{/name}","releases_url":"https://api.github.com/repos/seeleteam/go-seele/releases{/id}","deployments_url":"https://api.github.com/repos/seeleteam/go-seele/deployments","created_at":"2018-01-30T07:18:42Z","updated_at":"2018-05-10T17:00:10Z","pushed_at":"2018-05-10T13:21:07Z","git_url":"git://github.com/seeleteam/go-seele.git","ssh_url":"git@github.com:seeleteam/go-seele.git","clone_url":"https://github.com/seeleteam/go-seele.git","svn_url":"https://github.com/seeleteam/go-seele","homepage":"https://seele.pro","size":3306,"stargazers_count":85,"watchers_count":85,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":37,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"lgpl-3.0","name":"GNU Lesser General Public License v3.0","spdx_id":"LGPL-3.0","url":"https://api.github.com/licenses/lgpl-3.0"},"forks":37,"open_issues":4,"watchers":85,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/seeleteam/go-seele/pulls/161"},"html":{"href":"https://github.com/seeleteam/go-seele/pull/161"},"issue":{"href":"https://api.github.com/repos/seeleteam/go-seele/issues/161"},"comments":{"href":"https://api.github.com/repos/seeleteam/go-seele/issues/161/comments"},"review_comments":{"href":"https://api.github.com/repos/seeleteam/go-seele/pulls/161/comments"},"review_comment":{"href":"https://api.github.com/repos/seeleteam/go-seele/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/seeleteam/go-seele/pulls/161/commits"},"statuses":{"href":"https://api.github.com/repos/seeleteam/go-seele/statuses/926ac17279313c5aa6289bd3e60f0c4a3859532d"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":9,"additions":155,"deletions":133,"changed_files":21}}
{"actor":{"display_login":"sufay"}}