mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-30 06:48:49 +01:00
CW-214-Monero-wallet-rescan-bug (#945)
* clear transactionHistory before rescan * move the clear method to the abstract class
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user