mirror of
https://github.com/jwinterm/nodejs-pool.git
synced 2026-10-17 05:21:27 +02:00
Updates to include the new e-mail settings stored in SQL.
This commit is contained in:
+9
-3
@@ -1,6 +1,7 @@
|
||||
"use strict";
|
||||
const debug = require("debug")("worker");
|
||||
const async = require("async");
|
||||
const sprintf = require("sprintf-js").sprintf;
|
||||
|
||||
let threadName = "Worker Server ";
|
||||
let cycleCount = 0;
|
||||
@@ -214,9 +215,14 @@ function updateShareStats() {
|
||||
return;
|
||||
}
|
||||
// toAddress, subject, body
|
||||
global.support.sendEmail(rows[0].email, "Worker " + worker + " not hashing",
|
||||
"Hello,\r\n\r\nYour worker: " + worker + " has stopped submitting hashes at: " + global.support.formatDate(Date.now()) +
|
||||
" UTC\r\n\r\nThank you,\r\nXMRPool.net Administration Team");
|
||||
let emailData = {
|
||||
worker: worker,
|
||||
timestamp: global.support.formatDate(Date.now()),
|
||||
poolEmailSig: global.config.general.emailSig
|
||||
};
|
||||
global.support.sendEmail(rows[0].email,
|
||||
sprintf(global.config.email.workerNotHashingSubject, emailData),
|
||||
sprintf(global.config.email.workerNotHashingBody, emailData));
|
||||
});
|
||||
}
|
||||
minerStats.hash = 0;
|
||||
|
||||
Reference in New Issue
Block a user