configure testing parameters
This commit is contained in:
parent
4335d6f8ce
commit
816e377586
@ -13,8 +13,8 @@ var bcoin = require('fcoin');
|
|||||||
var _ = require('lodash');
|
var _ = require('lodash');
|
||||||
var LRU = require('lru-cache');
|
var LRU = require('lru-cache');
|
||||||
|
|
||||||
const MAX_IGNORED_BLOCK = 10; //Maximum ignored block allowed before trigging sync again
|
const MAX_IGNORED_BLOCK = 100; //Maximum ignored block allowed before trigging sync again
|
||||||
var __TestingCount = 5;
|
var __TestingCount = 2;
|
||||||
|
|
||||||
var BlockService = function(options) {
|
var BlockService = function(options) {
|
||||||
|
|
||||||
@ -955,6 +955,7 @@ BlockService.prototype._processBlock = function(block, callback) {
|
|||||||
if(self._ignoredBlockCount < MAX_IGNORED_BLOCK)
|
if(self._ignoredBlockCount < MAX_IGNORED_BLOCK)
|
||||||
self._ignoredBlockCount++;
|
self._ignoredBlockCount++;
|
||||||
else {
|
else {
|
||||||
|
console.debug("TESTING: resync is stopped")
|
||||||
self._ignoredBlockCount = 0;
|
self._ignoredBlockCount = 0;
|
||||||
self._removeAllSubscriptions();
|
self._removeAllSubscriptions();
|
||||||
self._startSync();
|
self._startSync();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user