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();
|
||||
|
||||
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');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user