From 00612852041076c89ce11a986c3f1beaba0bb18f Mon Sep 17 00:00:00 2001 From: Vivek Teega Date: Tue, 11 May 2021 13:21:45 +0530 Subject: [PATCH] 1.0.5 "return" was missing from lib/services/block/index.js - Reverted back the previous 2 commits - Added return to lib/services/block/index.js --- lib/services/block/index.js | 1 + lib/services/transaction/index.js | 10 ++-------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/lib/services/block/index.js b/lib/services/block/index.js index 06d6dfca..a8fbc7c6 100644 --- a/lib/services/block/index.js +++ b/lib/services/block/index.js @@ -984,6 +984,7 @@ BlockService.prototype._handleError = function(err) { log.error('Block Service: handle error ' + err); //FLO Crash Error Resolution by RanchiMall 10th May 2021 //return this.node.stop(); + return; } }; diff --git a/lib/services/transaction/index.js b/lib/services/transaction/index.js index 777f5b35..8ed23c1d 100644 --- a/lib/services/transaction/index.js +++ b/lib/services/transaction/index.js @@ -307,16 +307,10 @@ TransactionService.prototype._getInputValues = function(tx, options, callback) { }, // if not in mempool or tx index, we just don't have it, yet? function(txid, tx, next) { - if (!tx) { - log.info('Transaction Service: prev transacion: (' + input.prevout.txid() + ') for tx: ' + + return next(new Error('Transaction Service: prev transacion: (' + input.prevout.txid() + ') for tx: ' + _tx.txid() + ' at input index: ' + outputIndex + ' is missing from the index or not in the memory pool. It could be' + - ' that the parent tx has not yet been relayed to us, but will be relayed in the near future.'); - return next(); - /* FLOsight Error Resolution by RanchiMall 11th May 2021 - return next(new Error('Transaction Service: prev transacion: (' + input.prevout.txid() + ') for tx: ' + - _tx.txid() + ' at input index: ' + outputIndex + ' is missing from the index or not in the memory pool. It could be' + - ' that the parent tx has not yet been relayed to us, but will be relayed in the near future.'));*/ + ' that the parent tx has not yet been relayed to us, but will be relayed in the near future.')); } var output = tx.outputs[outputIndex];