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
|
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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user