mirror of
https://github.com/jwinterm/nodejs-pool.git
synced 2026-10-17 05:21:27 +02:00
Merge pull request #277 from bobbieltd/patch-1
TypeError: Cannot read property 'height' of undefined
This commit is contained in:
+3
-1
@@ -830,7 +830,9 @@ if (cluster.isMaster) {
|
||||
registerPool();
|
||||
setInterval(function () {
|
||||
global.mysql.query("UPDATE pools SET last_checkin = ?, active = ? WHERE id = ?", [global.support.formatDate(Date.now()), true, global.config.pool_id]);
|
||||
global.mysql.query("UPDATE pools SET blockIDTime = now(), blockID = ? where id = ?", [activeBlockTemplate.height, global.config.pool_id]);
|
||||
if (activeBlockTemplate) {
|
||||
global.mysql.query("UPDATE pools SET blockIDTime = now(), blockID = ? where id = ?", [activeBlockTemplate.height, global.config.pool_id]);
|
||||
}
|
||||
global.config.ports.forEach(function (portData) {
|
||||
global.mysql.query("UPDATE ports SET lastSeen = now(), miners = ? WHERE pool_id = ? AND network_port = ?", [minerCount[portData.port], global.config.pool_id, portData.port]);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user