[skip ci] minor

This commit is contained in:
fossephate 2024-09-24 16:52:44 -07:00
parent f66e369e45
commit 6f2cb4dff5

View file

@ -700,6 +700,9 @@ abstract class LitecoinWalletBase extends ElectrumWallet with Store {
}
await getStub();
// update unspent balances:
await updateUnspent();
int confirmed = balance.confirmed;
int unconfirmed = balance.unconfirmed;
int confirmedMweb = 0;
@ -717,9 +720,6 @@ abstract class LitecoinWalletBase extends ElectrumWallet with Store {
}
} catch (_) {}
// update unspent balances:
await updateUnspent();
for (var addressRecord in walletAddresses.allAddresses) {
addressRecord.balance = 0;
addressRecord.txCount = 0;