From 83815929debaf5ee33ede7f7e6a5911c50a1dfd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Sat, 9 Sep 2017 17:07:42 +0300 Subject: [PATCH] Log total difficulties to detect spammers. --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index 04fe8e5..150d77a 100644 --- a/app.js +++ b/app.js @@ -196,7 +196,7 @@ api.on('connection', function (spark) data: stats }); - console.success('API', 'BLK', 'Block:', data.block['number'], 'from:', data.id, 'ip:', spark.address.ip); + console.success('API', 'BLK', 'Block:', data.block['number'], 'td:', data.block['totalDifficulty'], 'from:', data.id, 'ip:', spark.address.ip); Nodes.getCharts(); }