Log total difficulties to detect spammers.

This commit is contained in:
Péter Szilágyi 2017-09-09 17:07:42 +03:00 committed by Ikmyeong Na
parent 86fc78064d
commit 611d68fde2
No known key found for this signature in database
GPG Key ID: EC674310ADADE2CA

2
app.js
View File

@ -196,7 +196,7 @@ api.on('connection', function (spark)
data: stats 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(); Nodes.getCharts();
} }