From 4c25a88c3218ce7f136c6722743e95686fdf0527 Mon Sep 17 00:00:00 2001 From: julian Date: Fri, 20 Jan 2023 11:48:59 -0600 Subject: [PATCH] update to use new block data callback --- crypto_plugins/flutter_libmonero | 2 +- lib/services/coins/monero/monero_wallet.dart | 3 ++- lib/services/coins/wownero/wownero_wallet.dart | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/crypto_plugins/flutter_libmonero b/crypto_plugins/flutter_libmonero index 66eaa2f3c..f1031db5b 160000 --- a/crypto_plugins/flutter_libmonero +++ b/crypto_plugins/flutter_libmonero @@ -1 +1 @@ -Subproject commit 66eaa2f3c7133f1dbf0b1fc950e7a9e3cc611185 +Subproject commit f1031db5bb67b38d028187f0ead192acb3e9ba55 diff --git a/lib/services/coins/monero/monero_wallet.dart b/lib/services/coins/monero/monero_wallet.dart index 2452099ad..48bcfc2ed 100644 --- a/lib/services/coins/monero/monero_wallet.dart +++ b/lib/services/coins/monero/monero_wallet.dart @@ -954,11 +954,12 @@ class MoneroWallet extends CoinServiceAPI with WalletCache, WalletDB { DefaultNodes.getNodeFor(coin); } - void onNewBlock() { + void onNewBlock({required int height, required int blocksLeft}) { // print("============================="); print("New Block! :: $walletName"); print("============================="); + updateCachedChainHeight(height); _refreshTxDataHelper(); } diff --git a/lib/services/coins/wownero/wownero_wallet.dart b/lib/services/coins/wownero/wownero_wallet.dart index 126cc2eb3..8cf873b3b 100644 --- a/lib/services/coins/wownero/wownero_wallet.dart +++ b/lib/services/coins/wownero/wownero_wallet.dart @@ -1022,11 +1022,12 @@ class WowneroWallet extends CoinServiceAPI with WalletCache, WalletDB { DefaultNodes.getNodeFor(coin); } - void onNewBlock() { + void onNewBlock({required int height, required int blocksLeft}) { // print("============================="); print("New Wownero Block! :: $walletName"); print("============================="); + updateCachedChainHeight(height); _refreshTxDataHelper(); }