update to use new block data callback

This commit is contained in:
julian 2023-01-20 11:48:59 -06:00
parent 0c1db6f249
commit 4c25a88c32
3 changed files with 5 additions and 3 deletions

@ -1 +1 @@
Subproject commit 66eaa2f3c7133f1dbf0b1fc950e7a9e3cc611185
Subproject commit f1031db5bb67b38d028187f0ead192acb3e9ba55

View file

@ -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();
}

View file

@ -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();
}