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(); } diff --git a/pubspec.yaml b/pubspec.yaml index a1ade167d..e7dca762d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -11,7 +11,7 @@ description: Stack Wallet # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -version: 1.5.27+100 +version: 1.5.29+103 environment: sdk: ">=2.17.0 <3.0.0"