From 93f64201a9aab8515ba389611c37b9b602e1491b Mon Sep 17 00:00:00 2001 From: Alexander Blair Date: Tue, 4 Jul 2017 13:10:40 -0700 Subject: [PATCH] Update for diff cycling. --- lib/pool.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/pool.js b/lib/pool.js index 3792ce4..2602a5d 100644 --- a/lib/pool.js +++ b/lib/pool.js @@ -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 = {