rpc: fix nonce updating.
This commit is contained in:
parent
5ce806a723
commit
99d2cceebe
@ -2169,9 +2169,9 @@ RPC.prototype.updateWork = co(function* updateWork() {
|
|||||||
this.bindChain();
|
this.bindChain();
|
||||||
|
|
||||||
if (attempt) {
|
if (attempt) {
|
||||||
if (++this.nonce1 === 0xffffffff) {
|
if (++this.nonce2 === 0x100000000) {
|
||||||
this.nonce1 = 0;
|
this.nonce2 = 0;
|
||||||
this.nonce2++;
|
this.nonce1++;
|
||||||
}
|
}
|
||||||
root = attempt.getRoot(this.nonce1, this.nonce2);
|
root = attempt.getRoot(this.nonce1, this.nonce2);
|
||||||
root = root.toString('hex');
|
root = root.toString('hex');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user