From dcf43bc5732eb70ad390234d7b3ab85d2230e4d7 Mon Sep 17 00:00:00 2001 From: Snipa22 Date: Wed, 27 Dec 2017 21:46:10 -0800 Subject: [PATCH] Update local_comms.js --- lib/local_comms.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/local_comms.js b/lib/local_comms.js index ac70fea..17c9975 100644 --- a/lib/local_comms.js +++ b/lib/local_comms.js @@ -628,7 +628,7 @@ function Database(){ let blockList = []; console.log("Scanning from: "+lastBlock + " for more than: " + difficulty + " shares"); range.range(0, lastBlock+1).forEach(function (blockID) { - blockID = (blockID - lastBlock+1) * -1; + blockID = Number((blockID - lastBlock+1) * -1); if (blockID < 0){ return; }