From 96677310c224be8a5e9972bfd1aca004ddf24f74 Mon Sep 17 00:00:00 2001 From: sairajzero Date: Thu, 27 Apr 2023 01:41:22 +0530 Subject: [PATCH] Bug fixes --- lib/services/address/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/services/address/index.js b/lib/services/address/index.js index 3c2c2044..6c327b2a 100644 --- a/lib/services/address/index.js +++ b/lib/services/address/index.js @@ -486,7 +486,7 @@ AddressService.prototype._loadCache = function(address, result, useCache, callba const self = this; if(!useCache) //skip if useCache is false (cases like 'after' parameter is used by client) - callback(); + return callback(); var key = self._encoding.encodeAddressCacheKey(address); self._db.get(key, function(err, value) { @@ -1167,10 +1167,10 @@ AddressService.prototype._streamAddressSummary = function(address, options, stre function query_mempool_txids(next) { if (!options.queryMempool) { - return next(null, []); + return next(); } - self._mempool.getTxidsByAddress(address, 'both', function(mempoolTxids) { + self._mempool.getTxidsByAddress(address, 'both', function(err, mempoolTxids) { if (mempoolTxids.length <= 0) { return next();