From 8133db6d8505e9c6a9154f005bdb7ba939110bbf Mon Sep 17 00:00:00 2001 From: Ace <34975638+CoinLogik@users.noreply.github.com> Date: Thu, 18 Jan 2018 17:05:32 -0500 Subject: [PATCH] Fixes: you specified keyIsUint32 on the Dbi Fixes bug where height < 0 and causes error on line 43: `Error: You specified keyIsUint32 on the Dbi, so you can't use other key types with it.` --- lib/worker.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/worker.js b/lib/worker.js index 8714ca9..788f4e0 100644 --- a/lib/worker.js +++ b/lib/worker.js @@ -127,7 +127,7 @@ function updateShareStats() { }, function (oldestTime) { height -= 1; loopBreakout += 1; - if (loopBreakout > 60) { + if (loopBreakout > 60 || height < 0) { return true; } return oldestTime <= identifierTime; @@ -534,4 +534,4 @@ setInterval(updatePoolStats, 5000, 'pps'); setInterval(updatePoolStats, 5000, 'solo'); setInterval(updatePoolInformation, 5000); setInterval(updateWalletStats, 60000); -setInterval(monitorNodes, 300000); \ No newline at end of file +setInterval(monitorNodes, 300000);