mirror of
https://github.com/jwinterm/nodejs-pool.git
synced 2026-10-17 05:21:27 +02:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user