Bug fixes

This commit is contained in:
sairajzero 2023-04-27 01:41:22 +05:30
parent e180672583
commit 96677310c2

View File

@ -486,7 +486,7 @@ AddressService.prototype._loadCache = function(address, result, useCache, callba
const self = this; const self = this;
if(!useCache) //skip if useCache is false (cases like 'after' parameter is used by client) if(!useCache) //skip if useCache is false (cases like 'after' parameter is used by client)
callback(); return callback();
var key = self._encoding.encodeAddressCacheKey(address); var key = self._encoding.encodeAddressCacheKey(address);
self._db.get(key, function(err, value) { self._db.get(key, function(err, value) {
@ -1167,10 +1167,10 @@ AddressService.prototype._streamAddressSummary = function(address, options, stre
function query_mempool_txids(next) { function query_mempool_txids(next) {
if (!options.queryMempool) { 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) { if (mempoolTxids.length <= 0) {
return next(); return next();