fix for miner.

This commit is contained in:
Christopher Jeffrey 2016-01-11 00:56:27 -08:00
parent 9c2b0015d1
commit 1754e7ee77

View File

@ -354,7 +354,7 @@ Miner.prototype.findNonce = function findNonce() {
// performance because we do not have to
// recalculate the merkle root.
now = utils.now();
if (now > this.block.ts) {
if (now > this.block.ts && now > this.last.ts) {
this.block.ts = now;
// Overflow the nonce
this.block.nonce = 0;