CAKE-158 | called update() method for accountList in the _onNewBlock() and rescan() methods (monero_wallet.dart)
OleksandrSobol committed
Nov 30, 2020 at 20:27 UTC
e10387a1b6174e03b566753ad7748b9ef82d0aa5
1 file changed
+4
-1
lib/monero/monero_wallet.dart
+4
-1
@@ -98,7 +98,7 @@ abstract class MoneroWalletBase extends WalletBase<MoneroBalance> with Store {
98
bool _isSavingAfterNewTransaction;
99
100
Future<void> init() async {
101
- await accountList.update();
101
+ accountList.update();
102
account = accountList.accounts.first;
103
subaddressList.update(accountIndex: account.id ?? 0);
104
subaddress = subaddressList.getAll().first;
@@ -260,6 +260,7 @@ abstract class MoneroWalletBase extends WalletBase<MoneroBalance> with Store {
260
monero_wallet.rescanBlockchainAsync();
261
await startSync();
262
_askForUpdateBalance();
263
+ accountList.update();
264
await _askForUpdateTransactionHistory();
265
await save();
266
await walletInfo.save();
@@ -369,11 +370,13 @@ abstract class MoneroWalletBase extends WalletBase<MoneroBalance> with Store {
370
if (walletInfo.isRecovery) {
371
await _askForUpdateTransactionHistory();
372
_askForUpdateBalance();
373
+ accountList.update();
374
}
375
376
if (blocksLeft < 100) {
377
await _askForUpdateTransactionHistory();
378
_askForUpdateBalance();
379
+ accountList.update();
380
syncStatus = SyncedSyncStatus();
381
await _afterSyncSave();
382