From c3d32b7ffc19b78ef031ae04048d60bafc8907ff Mon Sep 17 00:00:00 2001 From: Vivek Teega Date: Mon, 10 May 2021 12:39:02 +0530 Subject: [PATCH] FLO Crash Error Resolution --- lib/services/block/index.js | 3 ++- lib/services/header/index.js | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/services/block/index.js b/lib/services/block/index.js index 329a4a20..06d6dfca 100644 --- a/lib/services/block/index.js +++ b/lib/services/block/index.js @@ -982,7 +982,8 @@ BlockService.prototype._saveBlock = function(block, callback) { BlockService.prototype._handleError = function(err) { if (!this.node.stopping) { log.error('Block Service: handle error ' + err); - return this.node.stop(); + //FLO Crash Error Resolution by RanchiMall 10th May 2021 + //return this.node.stop(); } }; diff --git a/lib/services/header/index.js b/lib/services/header/index.js index 849f1a0d..27f3016e 100644 --- a/lib/services/header/index.js +++ b/lib/services/header/index.js @@ -25,12 +25,12 @@ var HeaderService = function(options) { this.subscriptions = {}; this.subscriptions.block = []; - this._checkpoint = options.checkpoint || 20000; // set to -1 to resync all headers. + this._checkpoint = options.checkpoint || 2000; // set to -1 to resync all headers. this.GENESIS_HASH = constants.BITCOIN_GENESIS_HASH[this.node.network]; this._lastHeader = null; this._initialSync = true; this._originalHeight = 0; - this._lastHeaderCount = 20000; + this._lastHeaderCount = 2000; this._slowMode = options.slowMode; }; @@ -486,7 +486,8 @@ HeaderService.prototype._onHeaders = function(headers) { HeaderService.prototype._handleError = function(err) { log.error('Header Service: ' + err); - this.node.stop(); + // FLO Crash Error Resolution by RanchiMall 10th May 2021 + // this.node.stop(); }; HeaderService.prototype._saveHeaders = function(dbOps, callback) {