blockManager fix for depthed scans.

This commit is contained in:
Alexander Blair
2017-02-13 14:48:18 -08:00
parent 78c0b2e7fb
commit 0783db81b5
+1 -1
View File
@@ -465,7 +465,7 @@ function blockScanner() {
}
debug("Parsing data for new blocks");
lastBlock = blockHeader.height;
range.range(0, (blockHeader.height - global.config.payout.blocksRequired)).forEach(function (blockID) {
range.range(0, (blockHeader.height - Math.floor(global.config.payout.blocksRequired/2))).forEach(function (blockID) {
if (!blockIDCache.hasOwnProperty(blockID)) {
inc_check += 1;
blockQueue.push({blockID: blockID}, function (err) {