Update index.js

This commit is contained in:
sairajzero 2023-02-05 18:35:32 +05:30
parent 263c892b1d
commit 85c1c02c74

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;
console.debug("POPED", results.items.splice(start_index, del_count)) ;
console.debug("POPED", results.items.splice(start_index, del_count).map(r => r.txid())) ;
}
}