fix wallet resttore, fix hardcoded IP

This commit is contained in:
Czarek Nakamoto 2024-11-13 05:25:09 -05:00
parent 268a884af5
commit fe0ddcd031
No known key found for this signature in database
GPG key ID: 04FB77CB56AB1DF4
2 changed files with 3 additions and 2 deletions

View file

@ -28,7 +28,7 @@ import 'package:monero/zano.dart' as zano;
import 'package:monero/src/generated_bindings_zano.g.dart' as zanoapi;
mixin ZanoWalletApi {
static const _defaultNodeUri = '195.201.107.230:33336';
static const _defaultNodeUri = '195.201.107.230:33340';
static const _statusDelivered = 'delivered';
static const _maxInvokeAttempts = 10;
static const _maxReopenAttempts = 5;
@ -84,7 +84,7 @@ mixin ZanoWalletApi {
_json('get_wallet_status', json);
if (_logInfo)
info(
'get_wallet_status connected: ${status.isDaemonConnected} in refresh: ${status.isInLongRefresh} progress: ${status.progress} wallet state: ${status.walletState}');
'get_wallet_status connected: ${status.isDaemonConnected} in refresh: ${status.isInLongRefresh} progress: ${status.progress} wallet state: ${status.walletState} sync: ${status.currentWalletHeight}/${status.currentWalletHeight}');
return status;
}

View file

@ -274,6 +274,7 @@ class WalletRestorePage extends BasePage {
final seedWords = seedPhrase.split(' ');
if (seedWords.length == 14 && walletRestoreViewModel.type == WalletType.wownero) return true;
if (seedWords.length == 26 && walletRestoreViewModel.type == WalletType.zano) return true;
if ((walletRestoreViewModel.type == WalletType.monero ||
walletRestoreViewModel.type == WalletType.wownero ||