1.0.6 Commented out more node.stop() calls

- Commented out all node.stop() calls to prevent the node from exiting under various error conditions
This commit is contained in:
Vivek Teega 2021-05-13 18:46:20 +05:30
parent 0061285204
commit 3598c92e0f
3 changed files with 6 additions and 3 deletions

View File

@ -49,7 +49,9 @@ DB.dependencies = [];
DB.prototype._onError = function(err) {
if (!this._stopping) {
log.error('Db Service: error: ' + err);
this.node.stop();
//FLO Crash Error Resolution by RanchiMall 10th May 2021
//return this.node.stop();
//this.node.stop();
}
};

View File

@ -247,7 +247,7 @@ MempoolService.prototype._onTransaction = function(tx) {
self._db.batch(ops, function(err) {
if(err) {
log.error(err);
self.node.stop();
// self.node.stop();
}
for (var i = 0; i < self._subscriptions.transaction.length; i++) {

View File

@ -364,7 +364,8 @@ P2P.prototype._matchNetwork = function(network) {
log.error('Configured network: "' + this.node.network +
'" does not match our peer\'s reported network: "' +
network.name + '".');
return this.node.stop();
// return this.node.stop();
return ;
}
return this.node.network === network.name ? network.name : network.alias;