Also apply fix to addLatestTransactions function

This commit is contained in:
Sebastiaan Pasma 2018-09-24 17:13:28 +02:00
commit fb41fca601
No known key found for this signature in database
GPG key ID: 9A2B0C8B95A1D26F

View file

@ -94,7 +94,7 @@
var overlappingTxFraction = overlappingTxsCount / Math.min(cachedTxs.length, PAGE_OVERLAP);
if (overlappingTxFraction >= MIN_KNOWN_TX_OVERLAP_FRACTION) { // We are good
if (overlappingTxFraction >= MIN_KNOWN_TX_OVERLAP_FRACTION || (someTransactionsWereNew && overlappingTxsCount === 0)) { // We are good
if (someTransactionsWereNew) {
var allTxs = uniqueNewTxs.concat(cachedTxs);
saveTxHistory(walletId, allTxs);