FLO Crash Error Resolution
This commit is contained in:
parent
861e908080
commit
c3d32b7ffc
@ -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();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user