diff --git a/cw_decred/lib/wallet.dart b/cw_decred/lib/wallet.dart index 97d78ba23c..c572c7a731 100644 --- a/cw_decred/lib/wallet.dart +++ b/cw_decred/lib/wallet.dart @@ -89,6 +89,7 @@ abstract class DecredWalletBase Future init() async { updateBalance(); + updateTransactionHistory(); } void performBackgroundTasks() async { @@ -99,6 +100,10 @@ abstract class DecredWalletBase // final decoded = json.decode(res); // final hash = decoded["hash"] ?? ""; updateBalance(); + updateTransactionHistory(); + } + + void updateTransactionHistory() async { var from = 0; while (true) { // Transactions are returned from newest to oldest. Loop fetching 5 txn