Update for diff cycling.

This commit is contained in:
Alexander Blair
2017-07-04 13:10:40 -07:00
parent e23658c21f
commit 93f64201a9
+4
View File
@@ -491,6 +491,10 @@ function Miner(id, login, pass, ipAddress, startingDiff, messageSender, protoVer
};
} else {
let blob = activeBlockTemplate.nextBlobWithChildNonce();
if (this.newDiff) {
this.difficulty = this.newDiff;
this.newDiff = null;
}
this.lastBlockHeight = activeBlockTemplate.height;
let newJob = {