{"action":"created","comment":{"url":"https://api.github.com/repos/gochain-io/explorer/pulls/comments/196479253","pull_request_review_id":130039326,"id":196479253,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NjQ3OTI1Mw==","diff_hunk":"@@ -118,21 +122,49 @@ var grabBlock = function (web3, blockHashOrNumber, listening) {\n     }\n }\n \n+var checkParentBlock = function (web3, blockData, recursively) {\n+    if (blockData.number) {\n+        var parentBlockNumber = blockData.number - 1;\n+        Block.findOne({ number: parentBlockNumber }, function (err, b) {\n+            if (err) {\n+                console.log(\"Cannot find block in db:\", err)\n+            } else {\n+                if (b) {","path":"tools/grabber.js","position":null,"original_position":76,"commit_id":"5ba41bca30da47405ad4b61e8ca2006622d950b4","original_commit_id":"647f7456a4bc4cf5c427ff4a90084defdcce578f","user":{"login":"rkononov","id":187434,"node_id":"MDQ6VXNlcjE4NzQzNA==","avatar_url":"https://avatars1.githubusercontent.com/u/187434?v=4","gravatar_id":"","url":"https://api.github.com/users/rkononov","html_url":"https://github.com/rkononov","followers_url":"https://api.github.com/users/rkononov/followers","following_url":"https://api.github.com/users/rkononov/following{/other_user}","gists_url":"https://api.github.com/users/rkononov/gists{/gist_id}","starred_url":"https://api.github.com/users/rkononov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkononov/subscriptions","organizations_url":"https://api.github.com/users/rkononov/orgs","repos_url":"https://api.github.com/users/rkononov/repos","events_url":"https://api.github.com/users/rkononov/events{/privacy}","received_events_url":"https://api.github.com/users/rkononov/received_events","type":"User","site_admin":false},"body":"parent block is always there but added additional grabBlock call - everything could happens","created_at":"2018-06-19T15:44:51Z","updated_at":"2018-06-19T15:44:51Z","html_url":"https://github.com/gochain-io/explorer/pull/68#discussion_r196479253","pull_request_url":"https://api.github.com/repos/gochain-io/explorer/pulls/68","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/gochain-io/explorer/pulls/comments/196479253"},"html":{"href":"https://github.com/gochain-io/explorer/pull/68#discussion_r196479253"},"pull_request":{"href":"https://api.github.com/repos/gochain-io/explorer/pulls/68"}},"in_reply_to_id":196475604},"pull_request":{"url":"https://api.github.com/repos/gochain-io/explorer/pulls/68","id":195862298,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk1ODYyMjk4","html_url":"https://github.com/gochain-io/explorer/pull/68","diff_url":"https://github.com/gochain-io/explorer/pull/68.diff","patch_url":"https://github.com/gochain-io/explorer/pull/68.patch","issue_url":"https://api.github.com/repos/gochain-io/explorer/issues/68","number":68,"state":"open","locked":false,"title":"optimized grabber, added checking parent","user":{"login":"r-kononov","id":40002763,"node_id":"MDQ6VXNlcjQwMDAyNzYz","avatar_url":"https://avatars1.githubusercontent.com/u/40002763?v=4","gravatar_id":"","url":"https://api.github.com/users/r-kononov","html_url":"https://github.com/r-kononov","followers_url":"https://api.github.com/users/r-kononov/followers","following_url":"https://api.github.com/users/r-kononov/following{/other_user}","gists_url":"https://api.github.com/users/r-kononov/gists{/gist_id}","starred_url":"https://api.github.com/users/r-kononov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r-kononov/subscriptions","organizations_url":"https://api.github.com/users/r-kononov/orgs","repos_url":"https://api.github.com/users/r-kononov/repos","events_url":"https://api.github.com/users/r-kononov/events{/privacy}","received_events_url":"https://api.github.com/users/r-kononov/received_events","type":"User","site_admin":false},"body":"tested on testnet, seems working, no issues so far, db refilled and fixed","created_at":"2018-06-19T15:11:30Z","updated_at":"2018-06-19T15:44:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fa86e55474ba3f3168b7d3ca47db12f5f237feba","assignee":{"login":"chovy","id":27381,"node_id":"MDQ6VXNlcjI3Mzgx","avatar_url":"https://avatars1.githubusercontent.com/u/27381?v=4","gravatar_id":"","url":"https://api.github.com/users/chovy","html_url":"https://github.com/chovy","followers_url":"https://api.github.com/users/chovy/followers","following_url":"https://api.github.com/users/chovy/following{/other_user}","gists_url":"https://api.github.com/users/chovy/gists{/gist_id}","starred_url":"https://api.github.com/users/chovy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chovy/subscriptions","organizations_url":"https://api.github.com/users/chovy/orgs","repos_url":"https://api.github.com/users/chovy/repos","events_url":"https://api.github.com/users/chovy/events{/privacy}","received_events_url":"https://api.github.com/users/chovy/received_events","type":"User","site_admin":false},"assignees":[{"login":"chovy","id":27381,"node_id":"MDQ6VXNlcjI3Mzgx","avatar_url":"https://avatars1.githubusercontent.com/u/27381?v=4","gravatar_id":"","url":"https://api.github.com/users/chovy","html_url":"https://github.com/chovy","followers_url":"https://api.github.com/users/chovy/followers","following_url":"https://api.github.com/users/chovy/following{/other_user}","gists_url":"https://api.github.com/users/chovy/gists{/gist_id}","starred_url":"https://api.github.com/users/chovy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chovy/subscriptions","organizations_url":"https://api.github.com/users/chovy/orgs","repos_url":"https://api.github.com/users/chovy/repos","events_url":"https://api.github.com/users/chovy/events{/privacy}","received_events_url":"https://api.github.com/users/chovy/received_events","type":"User","site_admin":false},{"login":"treeder","id":75826,"node_id":"MDQ6VXNlcjc1ODI2","avatar_url":"https://avatars3.githubusercontent.com/u/75826?v=4","gravatar_id":"","url":"https://api.github.com/users/treeder","html_url":"https://github.com/treeder","followers_url":"https://api.github.com/users/treeder/followers","following_url":"https://api.github.com/users/treeder/following{/other_user}","gists_url":"https://api.github.com/users/treeder/gists{/gist_id}","starred_url":"https://api.github.com/users/treeder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/treeder/subscriptions","organizations_url":"https://api.github.com/users/treeder/orgs","repos_url":"https://api.github.com/users/treeder/repos","events_url":"https://api.github.com/users/treeder/events{/privacy}","received_events_url":"https://api.github.com/users/treeder/received_events","type":"User","site_admin":false},{"login":"jmank88","id":1194128,"node_id":"MDQ6VXNlcjExOTQxMjg=","avatar_url":"https://avatars2.githubusercontent.com/u/1194128?v=4","gravatar_id":"","url":"https://api.github.com/users/jmank88","html_url":"https://github.com/jmank88","followers_url":"https://api.github.com/users/jmank88/followers","following_url":"https://api.github.com/users/jmank88/following{/other_user}","gists_url":"https://api.github.com/users/jmank88/gists{/gist_id}","starred_url":"https://api.github.com/users/jmank88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmank88/subscriptions","organizations_url":"https://api.github.com/users/jmank88/orgs","repos_url":"https://api.github.com/users/jmank88/repos","events_url":"https://api.github.com/users/jmank88/events{/privacy}","received_events_url":"https://api.github.com/users/jmank88/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/gochain-io/explorer/pulls/68/commits","review_comments_url":"https://api.github.com/repos/gochain-io/explorer/pulls/68/comments","review_comment_url":"https://api.github.com/repos/gochain-io/explorer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gochain-io/explorer/issues/68/comments","statuses_url":"https://api.github.com/repos/gochain-io/explorer/statuses/5ba41bca30da47405ad4b61e8ca2006622d950b4","head":{"label":"gochain-io:update-grabber","ref":"update-grabber","sha":"5ba41bca30da47405ad4b61e8ca2006622d950b4","user":{"login":"gochain-io","id":35312197,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM1MzEyMTk3","avatar_url":"https://avatars3.githubusercontent.com/u/35312197?v=4","gravatar_id":"","url":"https://api.github.com/users/gochain-io","html_url":"https://github.com/gochain-io","followers_url":"https://api.github.com/users/gochain-io/followers","following_url":"https://api.github.com/users/gochain-io/following{/other_user}","gists_url":"https://api.github.com/users/gochain-io/gists{/gist_id}","starred_url":"https://api.github.com/users/gochain-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gochain-io/subscriptions","organizations_url":"https://api.github.com/users/gochain-io/orgs","repos_url":"https://api.github.com/users/gochain-io/repos","events_url":"https://api.github.com/users/gochain-io/events{/privacy}","received_events_url":"https://api.github.com/users/gochain-io/received_events","type":"Organization","site_admin":false},"repo":{"id":124566194,"node_id":"MDEwOlJlcG9zaXRvcnkxMjQ1NjYxOTQ=","name":"explorer","full_name":"gochain-io/explorer","owner":{"login":"gochain-io","id":35312197,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM1MzEyMTk3","avatar_url":"https://avatars3.githubusercontent.com/u/35312197?v=4","gravatar_id":"","url":"https://api.github.com/users/gochain-io","html_url":"https://github.com/gochain-io","followers_url":"https://api.github.com/users/gochain-io/followers","following_url":"https://api.github.com/users/gochain-io/following{/other_user}","gists_url":"https://api.github.com/users/gochain-io/gists{/gist_id}","starred_url":"https://api.github.com/users/gochain-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gochain-io/subscriptions","organizations_url":"https://api.github.com/users/gochain-io/orgs","repos_url":"https://api.github.com/users/gochain-io/repos","events_url":"https://api.github.com/users/gochain-io/events{/privacy}","received_events_url":"https://api.github.com/users/gochain-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gochain-io/explorer","description":"GoChain Block Explorer","fork":false,"url":"https://api.github.com/repos/gochain-io/explorer","forks_url":"https://api.github.com/repos/gochain-io/explorer/forks","keys_url":"https://api.github.com/repos/gochain-io/explorer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gochain-io/explorer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gochain-io/explorer/teams","hooks_url":"https://api.github.com/repos/gochain-io/explorer/hooks","issue_events_url":"https://api.github.com/repos/gochain-io/explorer/issues/events{/number}","events_url":"https://api.github.com/repos/gochain-io/explorer/events","assignees_url":"https://api.github.com/repos/gochain-io/explorer/assignees{/user}","branches_url":"https://api.github.com/repos/gochain-io/explorer/branches{/branch}","tags_url":"https://api.github.com/repos/gochain-io/explorer/tags","blobs_url":"https://api.github.com/repos/gochain-io/explorer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gochain-io/explorer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gochain-io/explorer/git/refs{/sha}","trees_url":"https://api.github.com/repos/gochain-io/explorer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gochain-io/explorer/statuses/{sha}","languages_url":"https://api.github.com/repos/gochain-io/explorer/languages","stargazers_url":"https://api.github.com/repos/gochain-io/explorer/stargazers","contributors_url":"https://api.github.com/repos/gochain-io/explorer/contributors","subscribers_url":"https://api.github.com/repos/gochain-io/explorer/subscribers","subscription_url":"https://api.github.com/repos/gochain-io/explorer/subscription","commits_url":"https://api.github.com/repos/gochain-io/explorer/commits{/sha}","git_commits_url":"https://api.github.com/repos/gochain-io/explorer/git/commits{/sha}","comments_url":"https://api.github.com/repos/gochain-io/explorer/comments{/number}","issue_comment_url":"https://api.github.com/repos/gochain-io/explorer/issues/comments{/number}","contents_url":"https://api.github.com/repos/gochain-io/explorer/contents/{+path}","compare_url":"https://api.github.com/repos/gochain-io/explorer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gochain-io/explorer/merges","archive_url":"https://api.github.com/repos/gochain-io/explorer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gochain-io/explorer/downloads","issues_url":"https://api.github.com/repos/gochain-io/explorer/issues{/number}","pulls_url":"https://api.github.com/repos/gochain-io/explorer/pulls{/number}","milestones_url":"https://api.github.com/repos/gochain-io/explorer/milestones{/number}","notifications_url":"https://api.github.com/repos/gochain-io/explorer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gochain-io/explorer/labels{/name}","releases_url":"https://api.github.com/repos/gochain-io/explorer/releases{/id}","deployments_url":"https://api.github.com/repos/gochain-io/explorer/deployments","created_at":"2018-03-09T16:33:36Z","updated_at":"2018-06-17T16:20:26Z","pushed_at":"2018-06-19T15:43:58Z","git_url":"git://github.com/gochain-io/explorer.git","ssh_url":"git@github.com:gochain-io/explorer.git","clone_url":"https://github.com/gochain-io/explorer.git","svn_url":"https://github.com/gochain-io/explorer","homepage":"https://gochain.io","size":25233,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":11,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":2,"open_issues":11,"watchers":4,"default_branch":"master"}},"base":{"label":"gochain-io:master","ref":"master","sha":"c6800ebd50a78d9b5fea9b73e34913c27dea32c0","user":{"login":"gochain-io","id":35312197,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM1MzEyMTk3","avatar_url":"https://avatars3.githubusercontent.com/u/35312197?v=4","gravatar_id":"","url":"https://api.github.com/users/gochain-io","html_url":"https://github.com/gochain-io","followers_url":"https://api.github.com/users/gochain-io/followers","following_url":"https://api.github.com/users/gochain-io/following{/other_user}","gists_url":"https://api.github.com/users/gochain-io/gists{/gist_id}","starred_url":"https://api.github.com/users/gochain-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gochain-io/subscriptions","organizations_url":"https://api.github.com/users/gochain-io/orgs","repos_url":"https://api.github.com/users/gochain-io/repos","events_url":"https://api.github.com/users/gochain-io/events{/privacy}","received_events_url":"https://api.github.com/users/gochain-io/received_events","type":"Organization","site_admin":false},"repo":{"id":124566194,"node_id":"MDEwOlJlcG9zaXRvcnkxMjQ1NjYxOTQ=","name":"explorer","full_name":"gochain-io/explorer","owner":{"login":"gochain-io","id":35312197,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM1MzEyMTk3","avatar_url":"https://avatars3.githubusercontent.com/u/35312197?v=4","gravatar_id":"","url":"https://api.github.com/users/gochain-io","html_url":"https://github.com/gochain-io","followers_url":"https://api.github.com/users/gochain-io/followers","following_url":"https://api.github.com/users/gochain-io/following{/other_user}","gists_url":"https://api.github.com/users/gochain-io/gists{/gist_id}","starred_url":"https://api.github.com/users/gochain-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gochain-io/subscriptions","organizations_url":"https://api.github.com/users/gochain-io/orgs","repos_url":"https://api.github.com/users/gochain-io/repos","events_url":"https://api.github.com/users/gochain-io/events{/privacy}","received_events_url":"https://api.github.com/users/gochain-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gochain-io/explorer","description":"GoChain Block Explorer","fork":false,"url":"https://api.github.com/repos/gochain-io/explorer","forks_url":"https://api.github.com/repos/gochain-io/explorer/forks","keys_url":"https://api.github.com/repos/gochain-io/explorer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gochain-io/explorer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gochain-io/explorer/teams","hooks_url":"https://api.github.com/repos/gochain-io/explorer/hooks","issue_events_url":"https://api.github.com/repos/gochain-io/explorer/issues/events{/number}","events_url":"https://api.github.com/repos/gochain-io/explorer/events","assignees_url":"https://api.github.com/repos/gochain-io/explorer/assignees{/user}","branches_url":"https://api.github.com/repos/gochain-io/explorer/branches{/branch}","tags_url":"https://api.github.com/repos/gochain-io/explorer/tags","blobs_url":"https://api.github.com/repos/gochain-io/explorer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gochain-io/explorer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gochain-io/explorer/git/refs{/sha}","trees_url":"https://api.github.com/repos/gochain-io/explorer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gochain-io/explorer/statuses/{sha}","languages_url":"https://api.github.com/repos/gochain-io/explorer/languages","stargazers_url":"https://api.github.com/repos/gochain-io/explorer/stargazers","contributors_url":"https://api.github.com/repos/gochain-io/explorer/contributors","subscribers_url":"https://api.github.com/repos/gochain-io/explorer/subscribers","subscription_url":"https://api.github.com/repos/gochain-io/explorer/subscription","commits_url":"https://api.github.com/repos/gochain-io/explorer/commits{/sha}","git_commits_url":"https://api.github.com/repos/gochain-io/explorer/git/commits{/sha}","comments_url":"https://api.github.com/repos/gochain-io/explorer/comments{/number}","issue_comment_url":"https://api.github.com/repos/gochain-io/explorer/issues/comments{/number}","contents_url":"https://api.github.com/repos/gochain-io/explorer/contents/{+path}","compare_url":"https://api.github.com/repos/gochain-io/explorer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gochain-io/explorer/merges","archive_url":"https://api.github.com/repos/gochain-io/explorer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gochain-io/explorer/downloads","issues_url":"https://api.github.com/repos/gochain-io/explorer/issues{/number}","pulls_url":"https://api.github.com/repos/gochain-io/explorer/pulls{/number}","milestones_url":"https://api.github.com/repos/gochain-io/explorer/milestones{/number}","notifications_url":"https://api.github.com/repos/gochain-io/explorer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gochain-io/explorer/labels{/name}","releases_url":"https://api.github.com/repos/gochain-io/explorer/releases{/id}","deployments_url":"https://api.github.com/repos/gochain-io/explorer/deployments","created_at":"2018-03-09T16:33:36Z","updated_at":"2018-06-17T16:20:26Z","pushed_at":"2018-06-19T15:43:58Z","git_url":"git://github.com/gochain-io/explorer.git","ssh_url":"git@github.com:gochain-io/explorer.git","clone_url":"https://github.com/gochain-io/explorer.git","svn_url":"https://github.com/gochain-io/explorer","homepage":"https://gochain.io","size":25233,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":11,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":2,"open_issues":11,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gochain-io/explorer/pulls/68"},"html":{"href":"https://github.com/gochain-io/explorer/pull/68"},"issue":{"href":"https://api.github.com/repos/gochain-io/explorer/issues/68"},"comments":{"href":"https://api.github.com/repos/gochain-io/explorer/issues/68/comments"},"review_comments":{"href":"https://api.github.com/repos/gochain-io/explorer/pulls/68/comments"},"review_comment":{"href":"https://api.github.com/repos/gochain-io/explorer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gochain-io/explorer/pulls/68/commits"},"statuses":{"href":"https://api.github.com/repos/gochain-io/explorer/statuses/5ba41bca30da47405ad4b61e8ca2006622d950b4"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"rkononov"}}