CW-214-Monero-wallet-rescan-bug (#945)

* clear transactionHistory before rescan

* move the clear method to the abstract class
This commit is contained in:
Serhii
2023-07-11 20:56:01 +03:00
committed by GitHub
parent 181fd21636
commit 02fd12f5f8
4 changed files with 5 additions and 0 deletions
+1
View File
@@ -24,6 +24,7 @@ abstract class RescanViewModelBase with Store {
Future<void> rescanCurrentWallet({required int restoreHeight}) async {
state = RescanWalletState.rescaning;
await _wallet.rescan(height: restoreHeight);
_wallet.transactionHistory.clear();
state = RescanWalletState.none;
}
}