{"action":"created","comment":{"url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/pulls/comments/168915648","pull_request_review_id":97368222,"id":168915648,"diff_hunk":"@@ -74,9 +74,8 @@ async function sync(db) {\n   const removeHexPrefix = true;\n   const topicsNeedBalanceUpdate = new Set();\n   const oraclesNeedBalanceUpdate = new Set();\n-\n-  let currentBlockChainHeight = await qclient.getBlockCount();\n-  currentBlockChainHeight -= 1;\n+  var currentBlockChainHeight = await qclient.getBlockCount();","path":"src/sync/index.js","position":7,"original_position":7,"commit_id":"41d97bee846a931eae7b8902e33d57222c3f96d3","original_commit_id":"41d97bee846a931eae7b8902e33d57222c3f96d3","user":{"login":"dwalintukan","id":4350404,"avatar_url":"https://avatars2.githubusercontent.com/u/4350404?v=4","gravatar_id":"","url":"https://api.github.com/users/dwalintukan","html_url":"https://github.com/dwalintukan","followers_url":"https://api.github.com/users/dwalintukan/followers","following_url":"https://api.github.com/users/dwalintukan/following{/other_user}","gists_url":"https://api.github.com/users/dwalintukan/gists{/gist_id}","starred_url":"https://api.github.com/users/dwalintukan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwalintukan/subscriptions","organizations_url":"https://api.github.com/users/dwalintukan/orgs","repos_url":"https://api.github.com/users/dwalintukan/repos","events_url":"https://api.github.com/users/dwalintukan/events{/privacy}","received_events_url":"https://api.github.com/users/dwalintukan/received_events","type":"User","site_admin":false},"body":"change to `let`. let can be reassigned too.","created_at":"2018-02-17T07:45:26Z","updated_at":"2018-02-17T07:48:23Z","html_url":"https://github.com/bodhiproject/bodhi-graphql/pull/103#discussion_r168915648","pull_request_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/pulls/103","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/bodhiproject/bodhi-graphql/pulls/comments/168915648"},"html":{"href":"https://github.com/bodhiproject/bodhi-graphql/pull/103#discussion_r168915648"},"pull_request":{"href":"https://api.github.com/repos/bodhiproject/bodhi-graphql/pulls/103"}}},"pull_request":{"url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/pulls/103","id":168999432,"html_url":"https://github.com/bodhiproject/bodhi-graphql/pull/103","diff_url":"https://github.com/bodhiproject/bodhi-graphql/pull/103.diff","patch_url":"https://github.com/bodhiproject/bodhi-graphql/pull/103.patch","issue_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/issues/103","number":103,"state":"open","locked":false,"title":"deal with  unhandled promise rejection and change the delay for start…","user":{"login":"henryzbw","id":10339131,"avatar_url":"https://avatars0.githubusercontent.com/u/10339131?v=4","gravatar_id":"","url":"https://api.github.com/users/henryzbw","html_url":"https://github.com/henryzbw","followers_url":"https://api.github.com/users/henryzbw/followers","following_url":"https://api.github.com/users/henryzbw/following{/other_user}","gists_url":"https://api.github.com/users/henryzbw/gists{/gist_id}","starred_url":"https://api.github.com/users/henryzbw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henryzbw/subscriptions","organizations_url":"https://api.github.com/users/henryzbw/orgs","repos_url":"https://api.github.com/users/henryzbw/repos","events_url":"https://api.github.com/users/henryzbw/events{/privacy}","received_events_url":"https://api.github.com/users/henryzbw/received_events","type":"User","site_admin":false},"body":"catch the unhandled promise and retry inside sync/index.js","created_at":"2018-02-14T01:12:53Z","updated_at":"2018-02-17T07:48:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"93053ad8c53b69bdc9c0fe542766dcafed215a70","assignee":null,"assignees":[],"requested_reviewers":[{"login":"frankobe","id":2467199,"avatar_url":"https://avatars2.githubusercontent.com/u/2467199?v=4","gravatar_id":"","url":"https://api.github.com/users/frankobe","html_url":"https://github.com/frankobe","followers_url":"https://api.github.com/users/frankobe/followers","following_url":"https://api.github.com/users/frankobe/following{/other_user}","gists_url":"https://api.github.com/users/frankobe/gists{/gist_id}","starred_url":"https://api.github.com/users/frankobe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frankobe/subscriptions","organizations_url":"https://api.github.com/users/frankobe/orgs","repos_url":"https://api.github.com/users/frankobe/repos","events_url":"https://api.github.com/users/frankobe/events{/privacy}","received_events_url":"https://api.github.com/users/frankobe/received_events","type":"User","site_admin":false},{"login":"chrisli30","id":2616844,"avatar_url":"https://avatars0.githubusercontent.com/u/2616844?v=4","gravatar_id":"","url":"https://api.github.com/users/chrisli30","html_url":"https://github.com/chrisli30","followers_url":"https://api.github.com/users/chrisli30/followers","following_url":"https://api.github.com/users/chrisli30/following{/other_user}","gists_url":"https://api.github.com/users/chrisli30/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisli30/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisli30/subscriptions","organizations_url":"https://api.github.com/users/chrisli30/orgs","repos_url":"https://api.github.com/users/chrisli30/repos","events_url":"https://api.github.com/users/chrisli30/events{/privacy}","received_events_url":"https://api.github.com/users/chrisli30/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/pulls/103/commits","review_comments_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/pulls/103/comments","review_comment_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/issues/103/comments","statuses_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/statuses/41d97bee846a931eae7b8902e33d57222c3f96d3","head":{"label":"bodhiproject:qtum_start_delay_handle","ref":"qtum_start_delay_handle","sha":"41d97bee846a931eae7b8902e33d57222c3f96d3","user":{"login":"bodhiproject","id":29763948,"avatar_url":"https://avatars2.githubusercontent.com/u/29763948?v=4","gravatar_id":"","url":"https://api.github.com/users/bodhiproject","html_url":"https://github.com/bodhiproject","followers_url":"https://api.github.com/users/bodhiproject/followers","following_url":"https://api.github.com/users/bodhiproject/following{/other_user}","gists_url":"https://api.github.com/users/bodhiproject/gists{/gist_id}","starred_url":"https://api.github.com/users/bodhiproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bodhiproject/subscriptions","organizations_url":"https://api.github.com/users/bodhiproject/orgs","repos_url":"https://api.github.com/users/bodhiproject/repos","events_url":"https://api.github.com/users/bodhiproject/events{/privacy}","received_events_url":"https://api.github.com/users/bodhiproject/received_events","type":"Organization","site_admin":false},"repo":{"id":112669160,"name":"bodhi-graphql","full_name":"bodhiproject/bodhi-graphql","owner":{"login":"bodhiproject","id":29763948,"avatar_url":"https://avatars2.githubusercontent.com/u/29763948?v=4","gravatar_id":"","url":"https://api.github.com/users/bodhiproject","html_url":"https://github.com/bodhiproject","followers_url":"https://api.github.com/users/bodhiproject/followers","following_url":"https://api.github.com/users/bodhiproject/following{/other_user}","gists_url":"https://api.github.com/users/bodhiproject/gists{/gist_id}","starred_url":"https://api.github.com/users/bodhiproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bodhiproject/subscriptions","organizations_url":"https://api.github.com/users/bodhiproject/orgs","repos_url":"https://api.github.com/users/bodhiproject/repos","events_url":"https://api.github.com/users/bodhiproject/events{/privacy}","received_events_url":"https://api.github.com/users/bodhiproject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bodhiproject/bodhi-graphql","description":"The main synchronization logic to fetch all bodhi related data from Qtum blockchain to mongoDB and expose through graphql","fork":false,"url":"https://api.github.com/repos/bodhiproject/bodhi-graphql","forks_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/forks","keys_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/teams","hooks_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/hooks","issue_events_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/issues/events{/number}","events_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/events","assignees_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/assignees{/user}","branches_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/branches{/branch}","tags_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/tags","blobs_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/git/refs{/sha}","trees_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/statuses/{sha}","languages_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/languages","stargazers_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/stargazers","contributors_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/contributors","subscribers_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/subscribers","subscription_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/subscription","commits_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/commits{/sha}","git_commits_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/git/commits{/sha}","comments_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/comments{/number}","issue_comment_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/issues/comments{/number}","contents_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/contents/{+path}","compare_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/merges","archive_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/downloads","issues_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/issues{/number}","pulls_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/pulls{/number}","milestones_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/milestones{/number}","notifications_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/labels{/name}","releases_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/releases{/id}","deployments_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/deployments","created_at":"2017-11-30T22:45:19Z","updated_at":"2018-02-14T15:12:18Z","pushed_at":"2018-02-16T23:06:01Z","git_url":"git://github.com/bodhiproject/bodhi-graphql.git","ssh_url":"git@github.com:bodhiproject/bodhi-graphql.git","clone_url":"https://github.com/bodhiproject/bodhi-graphql.git","svn_url":"https://github.com/bodhiproject/bodhi-graphql","homepage":"","size":284178,"stargazers_count":7,"watchers_count":7,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":19,"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":19,"watchers":7,"default_branch":"master"}},"base":{"label":"bodhiproject:master","ref":"master","sha":"92b203efc94a8687d750d4875429ca023bd136d3","user":{"login":"bodhiproject","id":29763948,"avatar_url":"https://avatars2.githubusercontent.com/u/29763948?v=4","gravatar_id":"","url":"https://api.github.com/users/bodhiproject","html_url":"https://github.com/bodhiproject","followers_url":"https://api.github.com/users/bodhiproject/followers","following_url":"https://api.github.com/users/bodhiproject/following{/other_user}","gists_url":"https://api.github.com/users/bodhiproject/gists{/gist_id}","starred_url":"https://api.github.com/users/bodhiproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bodhiproject/subscriptions","organizations_url":"https://api.github.com/users/bodhiproject/orgs","repos_url":"https://api.github.com/users/bodhiproject/repos","events_url":"https://api.github.com/users/bodhiproject/events{/privacy}","received_events_url":"https://api.github.com/users/bodhiproject/received_events","type":"Organization","site_admin":false},"repo":{"id":112669160,"name":"bodhi-graphql","full_name":"bodhiproject/bodhi-graphql","owner":{"login":"bodhiproject","id":29763948,"avatar_url":"https://avatars2.githubusercontent.com/u/29763948?v=4","gravatar_id":"","url":"https://api.github.com/users/bodhiproject","html_url":"https://github.com/bodhiproject","followers_url":"https://api.github.com/users/bodhiproject/followers","following_url":"https://api.github.com/users/bodhiproject/following{/other_user}","gists_url":"https://api.github.com/users/bodhiproject/gists{/gist_id}","starred_url":"https://api.github.com/users/bodhiproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bodhiproject/subscriptions","organizations_url":"https://api.github.com/users/bodhiproject/orgs","repos_url":"https://api.github.com/users/bodhiproject/repos","events_url":"https://api.github.com/users/bodhiproject/events{/privacy}","received_events_url":"https://api.github.com/users/bodhiproject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bodhiproject/bodhi-graphql","description":"The main synchronization logic to fetch all bodhi related data from Qtum blockchain to mongoDB and expose through graphql","fork":false,"url":"https://api.github.com/repos/bodhiproject/bodhi-graphql","forks_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/forks","keys_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/teams","hooks_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/hooks","issue_events_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/issues/events{/number}","events_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/events","assignees_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/assignees{/user}","branches_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/branches{/branch}","tags_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/tags","blobs_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/git/refs{/sha}","trees_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/statuses/{sha}","languages_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/languages","stargazers_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/stargazers","contributors_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/contributors","subscribers_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/subscribers","subscription_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/subscription","commits_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/commits{/sha}","git_commits_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/git/commits{/sha}","comments_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/comments{/number}","issue_comment_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/issues/comments{/number}","contents_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/contents/{+path}","compare_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/merges","archive_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/downloads","issues_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/issues{/number}","pulls_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/pulls{/number}","milestones_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/milestones{/number}","notifications_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/labels{/name}","releases_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/releases{/id}","deployments_url":"https://api.github.com/repos/bodhiproject/bodhi-graphql/deployments","created_at":"2017-11-30T22:45:19Z","updated_at":"2018-02-14T15:12:18Z","pushed_at":"2018-02-16T23:06:01Z","git_url":"git://github.com/bodhiproject/bodhi-graphql.git","ssh_url":"git@github.com:bodhiproject/bodhi-graphql.git","clone_url":"https://github.com/bodhiproject/bodhi-graphql.git","svn_url":"https://github.com/bodhiproject/bodhi-graphql","homepage":"","size":284178,"stargazers_count":7,"watchers_count":7,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":19,"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":19,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bodhiproject/bodhi-graphql/pulls/103"},"html":{"href":"https://github.com/bodhiproject/bodhi-graphql/pull/103"},"issue":{"href":"https://api.github.com/repos/bodhiproject/bodhi-graphql/issues/103"},"comments":{"href":"https://api.github.com/repos/bodhiproject/bodhi-graphql/issues/103/comments"},"review_comments":{"href":"https://api.github.com/repos/bodhiproject/bodhi-graphql/pulls/103/comments"},"review_comment":{"href":"https://api.github.com/repos/bodhiproject/bodhi-graphql/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bodhiproject/bodhi-graphql/pulls/103/commits"},"statuses":{"href":"https://api.github.com/repos/bodhiproject/bodhi-graphql/statuses/41d97bee846a931eae7b8902e33d57222c3f96d3"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"dwalintukan"}}