diff --git a/lib/http/rpc.js b/lib/http/rpc.js index da9829c7..c903079f 100644 --- a/lib/http/rpc.js +++ b/lib/http/rpc.js @@ -2169,9 +2169,9 @@ RPC.prototype.updateWork = co(function* updateWork() { this.bindChain(); if (attempt) { - if (++this.nonce1 === 0xffffffff) { - this.nonce1 = 0; - this.nonce2++; + if (++this.nonce2 === 0x100000000) { + this.nonce2 = 0; + this.nonce1++; } root = attempt.getRoot(this.nonce1, this.nonce2); root = root.toString('hex');