[skip ci] save

This commit is contained in:
Matthew Fosse 2024-09-12 22:53:04 -07:00
parent 6a4327a53b
commit 5c9a902b1f

View file

@ -244,9 +244,8 @@ abstract class LitecoinWalletBase extends ElectrumWallet with Store {
print("STARTING SYNC - MWEB ENABLED: $mwebEnabled");
syncStatus = SyncronizingSyncStatus();
await subscribeForUpdates();
await updateTransactions();
await updateFeeRates();
await updateFeeRates();
_feeRatesTimer?.cancel();
_feeRatesTimer =
Timer.periodic(const Duration(minutes: 1), (timer) async => await updateFeeRates());
@ -265,14 +264,13 @@ abstract class LitecoinWalletBase extends ElectrumWallet with Store {
}
await waitForMwebAddresses();
await getStub();
await processMwebUtxos();
await updateTransactions();
await updateUnspent();
await updateBalance();
_syncTimer?.cancel();
// delay the timer by a second so we don't overrride the restoreheight if one is set
Timer(const Duration(seconds: 2), () async {
_syncTimer = Timer.periodic(const Duration(milliseconds: 1500), (timer) async {
if (syncStatus is FailedSyncStatus) return;
@ -330,9 +328,6 @@ abstract class LitecoinWalletBase extends ElectrumWallet with Store {
timer.cancel();
}
});
});
// this runs in the background and processes new utxos as they come in:
processMwebUtxos();
}
@action