Skip to content

Commit

Permalink
ignore undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
roks0n committed Jul 24, 2019
1 parent a918ade commit e3315f3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ const report = (crawler) => {
const nodes = Object.values(crawler.nodes)

for (const item of nodes) {
if (item.height === undefined || item.id === undefined) {
continue
}

if (blockStats[item.height]) {
blockStats[item.height].count += 1
blockStats[item.height].ids[item.id] += 1
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@deadlock-delegate/crawler",
"version": "1.2.8",
"version": "1.2.9",
"description": "Crawler scans the ARK network to get information about the peers in the network.",
"main": "src/crawler.js",
"scripts": {
Expand Down

0 comments on commit e3315f3

Please sign in to comment.