logging
This commit is contained in:
parent
85c1c02c74
commit
cb89be8263
@ -881,14 +881,10 @@ AddressService.prototype._streamAddressSummary = function(address, options, stre
|
|||||||
|
|
||||||
}, 4);
|
}, 4);
|
||||||
|
|
||||||
let emp_count = 0, d_count = 0;
|
|
||||||
q.empty = () => console.debug("EMPTY", ++emp_count, td_count);
|
|
||||||
q.drain = () => console.debug("DRAIN", ++d_count, td_count);
|
|
||||||
|
|
||||||
//q.pause(); //pause and wait until queue is set
|
//q.pause(); //pause and wait until queue is set
|
||||||
|
|
||||||
function chunkCallback(err, tx){
|
function chunkCallback(err, tx){
|
||||||
console.debug("CHUNK", td_count, q.length(), q.killed);
|
|
||||||
if(q.killed || (!err && !tx)) //no error or tx data (duplicate calls will have empty tx value)
|
if(q.killed || (!err && !tx)) //no error or tx data (duplicate calls will have empty tx value)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@ -925,7 +921,9 @@ AddressService.prototype._streamAddressSummary = function(address, options, stre
|
|||||||
|
|
||||||
self._transaction.getTransaction(options.after, options, function(err, tx) {
|
self._transaction.getTransaction(options.after, options, function(err, tx) {
|
||||||
|
|
||||||
if(tx && tx.confirmations && tx.height > options.start) {
|
if(!tx) console.debug(options.after + "Not found");
|
||||||
|
|
||||||
|
if(tx && tx.confirmations && tx.height >= options.start) {
|
||||||
|
|
||||||
options.start = tx.height;
|
options.start = tx.height;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user