Log total difficulties to detect spammers.

pull/5/head
Péter Szilágyi 7 years ago
parent 5870b85014
commit 83815929de
No known key found for this signature in database
GPG Key ID: E9AE538CEDF8293D
  1. 2
      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();
}

Loading…
Cancel
Save