Remove old function

This commit is contained in:
adaxi
2018-02-18 22:08:59 +01:00
parent 9ee4b71651
commit 308f2f0135
-17
View File
@@ -504,23 +504,6 @@ function updateWalletStats() {
}
function monitorNodes() {
global.mysql.query("SELECT blockID, hostname, ip FROM pools WHERE last_checkin > date_sub(now(), interval 30 minute)").then(function (rows) {
global.coinFuncs.getLastBlockHeader(function (err, block) {
if (err !== null){
console.error("Issue in getting block header. Skipping node monitor");
return;
}
rows.forEach(function (row) {
if (row.blockID < block.height - 3) {
global.support.sendEmail(global.config.general.adminEmail, "Pool server behind in blocks", "The pool server: "+row.hostname+" with IP: "+row.ip+" is "+(block.height - row.blockID)+ " blocks behind");
}
}
);
});
});
}
function monitorNodes() {
global.coinFuncs.getLastBlockHeader((err, block) => {
if (err !== null) {