Job management change
@@ -661,12 +661,18 @@ namespace MiningCore.Blockchain.Bitcoin
lock (jobLock)
{
+ if(isNew)
+ validJobs.Clear();
+
validJobs.Add(job);
+ if (!isNew)
+ {
// trim active jobs
while(validJobs.Count > maxActiveJobs)
validJobs.RemoveAt(0);
}
+ }
currentJob = job;
}
