configure testing parameters
This commit is contained in:
parent
4335d6f8ce
commit
816e377586
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user