diff --git a/lib/services/address/index.js b/lib/services/address/index.js index 62fb6bc3..ebaddafb 100644 --- a/lib/services/address/index.js +++ b/lib/services/address/index.js @@ -217,6 +217,7 @@ AddressService.prototype.getAddressHistory = function(addresses, options, stream }, function(err) { + console.debug("END @getAddressHistory"); if (err) { return callback(err); } @@ -911,7 +912,10 @@ AddressService.prototype._streamAddressSummary = function(address, options, stre }); txIdTransformStream.on('end', function() { - q.drain = next; + q.drain = (e, d)=> { + console.debug("END-DRAIN", d_count, td_count); + next(e, d); + }; //q.resume(); });