Log total difficulties to detect spammers.
This commit is contained in:
parent
5870b85014
commit
83815929de
2
app.js
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…
Reference in New Issue
Block a user