Update index.js

This commit is contained in:
sairajzero 2023-02-05 18:33:21 +05:30
parent 373600dbb9
commit 263c892b1d

View File

@ -222,7 +222,7 @@ AddressService.prototype.getAddressHistory = function(addresses, options, stream
results.items.sort((a, b) => b.__height - a.__height || a.txid().localeCompare(b.txid()));
let del_count = options.old_support ? results.items.length : results.items.length - MAX_TX_QUERY_LIMIT;
let start_index = options.old_support ? MAX_TX_QUERY_LIMIT : 0;
results.items.splice(start_index, del_count);
console.debug("POPED", results.items.splice(start_index, del_count)) ;
}
}