FLO Crash Error Resolution

This commit is contained in:
Vivek Teega 2021-05-10 12:39:02 +05:30
parent 861e908080
commit c3d32b7ffc
2 changed files with 6 additions and 4 deletions

View File

@ -982,7 +982,8 @@ BlockService.prototype._saveBlock = function(block, callback) {
BlockService.prototype._handleError = function(err) { BlockService.prototype._handleError = function(err) {
if (!this.node.stopping) { if (!this.node.stopping) {
log.error('Block Service: handle error ' + err); log.error('Block Service: handle error ' + err);
return this.node.stop(); //FLO Crash Error Resolution by RanchiMall 10th May 2021
//return this.node.stop();
} }
}; };

View File

@ -25,12 +25,12 @@ var HeaderService = function(options) {
this.subscriptions = {}; this.subscriptions = {};
this.subscriptions.block = []; 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.GENESIS_HASH = constants.BITCOIN_GENESIS_HASH[this.node.network];
this._lastHeader = null; this._lastHeader = null;
this._initialSync = true; this._initialSync = true;
this._originalHeight = 0; this._originalHeight = 0;
this._lastHeaderCount = 20000; this._lastHeaderCount = 2000;
this._slowMode = options.slowMode; this._slowMode = options.slowMode;
}; };
@ -486,7 +486,8 @@ HeaderService.prototype._onHeaders = function(headers) {
HeaderService.prototype._handleError = function(err) { HeaderService.prototype._handleError = function(err) {
log.error('Header Service: ' + 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) { HeaderService.prototype._saveHeaders = function(dbOps, callback) {