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; }