From 43e2cac3681d80330be80ddb6a894dc183fab8ec Mon Sep 17 00:00:00 2001 From: 2DT Date: Tue, 9 Feb 2021 16:55:46 +0100 Subject: [PATCH] Adjusted versionStats + removed node log --- app.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app.js b/app.js index b0c2b23..b0e71ab 100644 --- a/app.js +++ b/app.js @@ -28,12 +28,12 @@ const report = (crawler) => { blockStats[node.height].ids[node.id] = 1 } - if (versionStats[node.version]) { - versionStats[node.version].count += 1 + if (versionStats[node.config.version]) { + versionStats[node.config.version].count += 1 } else { - versionStats[node.version] = { + versionStats[node.config.version] = { count: 1, - version: node.version + version: node.config.version } } @@ -83,7 +83,7 @@ const report = (crawler) => { for (const stat of orderBy(Object.values(versionStats), ['version'], ['desc'])) { console.log(` - ${stat.version} on ${stat.count} nodes`) } - + console.log('------------------------------------------') console.log(`Finished scanning in ${new Date() - crawler.startTime}ms`)