diff --git a/lib/services/block/index.js b/lib/services/block/index.js index b5f37e62..4b609bcd 100644 --- a/lib/services/block/index.js +++ b/lib/services/block/index.js @@ -13,8 +13,8 @@ var bcoin = require('fcoin'); var _ = require('lodash'); var LRU = require('lru-cache'); -const MAX_IGNORED_BLOCK = 10; //Maximum ignored block allowed before trigging sync again -var __TestingCount = 5; +const MAX_IGNORED_BLOCK = 100; //Maximum ignored block allowed before trigging sync again +var __TestingCount = 2; var BlockService = function(options) { @@ -955,6 +955,7 @@ BlockService.prototype._processBlock = function(block, callback) { if(self._ignoredBlockCount < MAX_IGNORED_BLOCK) self._ignoredBlockCount++; else { + console.debug("TESTING: resync is stopped") self._ignoredBlockCount = 0; self._removeAllSubscriptions(); self._startSync();