mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
Fixes
This commit is contained in:
@@ -240,13 +240,13 @@ class SyncListener {
|
||||
_initialSyncHeight = 0;
|
||||
_updateSyncInfoTimer ??=
|
||||
Timer.periodic(Duration(milliseconds: 1200), (_) async {
|
||||
if (isNewTransactionExist() ?? isNeededToRefresh() ?? false) {
|
||||
onNewTransaction?.call();
|
||||
}
|
||||
|
||||
final _isNeededToRefresh = isNeededToRefresh();
|
||||
print('isNeededToRefresh $_isNeededToRefresh');
|
||||
|
||||
if (isNewTransactionExist() || _isNeededToRefresh) {
|
||||
onNewTransaction?.call();
|
||||
}
|
||||
|
||||
var syncHeight = getSyncingHeight();
|
||||
|
||||
print('syncHeight $syncHeight');
|
||||
|
||||
Reference in New Issue
Block a user