Setting up port disable/lockout from the SQL into the main code base for the pool. Also making it so the API won't list a non-used pool type.

This commit is contained in:
Alexander Blair
2017-02-15 16:22:35 -08:00
parent e6b340a8c6
commit 7c79ceede5
2 changed files with 14 additions and 1 deletions
+3
View File
@@ -715,6 +715,9 @@ if (cluster.isMaster) {
bannedIPs = [];
}, 60000);
async.each(global.config.ports, function (portData) {
if (global.config[portData.portType].enable !== true){
return;
}
let handleMessage = function (socket, jsonData, pushMessage) {
if (!jsonData.id) {
console.warn('Miner RPC request missing RPC id');