Checking every time we get earlier data, if all transactions have been fetched.

This commit is contained in:
Brendon Duncan 2018-08-22 20:01:30 +12:00
commit feca8b5807

View file

@ -269,6 +269,7 @@
if (getLatest) {
txs = addLatestTransactions(wallet.id, cachedTxs, fetchedTxs);
} else {
allTransactionsFetched = false;
txs = addEarlyTransactions(wallet.id, cachedTxs, fetchedTxs);
return cb(null, txs, allTransactionsFetched/*, hasAllTransactionsFetched(wallet.id, cachedTxs, fetchedTxs)*/);
}