Adding a block so that if there's not an activeBlockTemplate the system will kick out the miner to avoid the system crashing on reboot/startup.

This commit is contained in:
Alexander Blair
2017-06-16 10:19:14 -07:00
parent be43514016
commit 5d1af0506a
+4
View File
@@ -292,6 +292,10 @@ function Miner(id, login, pass, ipAddress, startingDiff, messageSender, protoVer
this.error = "Exchange addresses need payment IDs";
this.valid_miner = false;
}
if (!activeBlockTemplate){
this.error = "No active block template";
this.valid_miner = false;
}
this.id = id;
this.ipAddress = ipAddress;