diff --git a/src/models/history/historyManager.go b/src/models/history/historyManager.go index e1d7235d..23b0d5f4 100644 --- a/src/models/history/historyManager.go +++ b/src/models/history/historyManager.go @@ -129,9 +129,8 @@ func (hm *HistoryManager) updateTxns() { logHistoryManager.Warn("Couldn't get address iterator") continue } - var newTxnsFinded bool + for addressIterator.Next() { - newTxnsFinded = false txnsIterator := addressIterator.Value().GetCryptoAccount().ListTransactions() if txnsIterator == nil { logHistoryManager.Warn("Couldn't get transaction iterator") @@ -186,15 +185,10 @@ func (hm *HistoryManager) updateTxns() { if corrupted { continue } - newTxnsFinded = true + hm.NewTransactions() hm.txnFinded[txnsIterator.Value().GetId()] = struct{}{} } } - if newTxnsFinded { - models.Helper.RunInMain(func() { - hm.NewTransactions() - }) - } } }