log
This commit is contained in:
parent
9b59e5791a
commit
5e6340be78
@ -891,6 +891,9 @@ AddressService.prototype._streamAddressSummary = function(address, options, stre
|
||||
streamer(err, tx);
|
||||
|
||||
if((err || options.flag_stop) && q.idle()){
|
||||
|
||||
console.debug("KILL", options.flag_stop)
|
||||
|
||||
q.kill();
|
||||
|
||||
return callback();
|
||||
@ -950,8 +953,11 @@ AddressService.prototype._streamAddressSummary = function(address, options, stre
|
||||
|
||||
txIdTransformStream._transform = function(chunk, enc, cb) {
|
||||
|
||||
if(options.flag_stop)//stop data query
|
||||
if(options.flag_stop){
|
||||
//stop data query
|
||||
console.debug("FLAG:", options.flag_stop)
|
||||
return txIdTransformStream.unpipe();
|
||||
}
|
||||
|
||||
var txInfo = self._encoding.decodeAddressIndexKey(chunk);
|
||||
q.push({ txid: txInfo.txid, height: txInfo.height }, chunkCallback);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user