Log total difficulties to detect spammers.
This commit is contained in:
parent
bc4b0b9ce3
commit
82e2fa36e1
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