Disable ETA by default, use electrs node as a fallback not hardcoded

This commit is contained in:
OmarHatem
2026-01-26 20:03:48 +02:00
parent bbf1ca9dcc
commit 1067157c36
4 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ class ElectrumClient {
unterminatedString = '';
static const connectionTimeout = Duration(seconds: 5);
static const aliveTimerDuration = Duration(seconds: 4);
static const aliveTimerDuration = Duration(seconds: 5);
bool get isConnected => socket != null && socket?.isClosed == false;
ProxySocket? socket;
+1 -1
View File
@@ -3013,7 +3013,7 @@ Future<void> _handleScanSilentPayments(ScanData scanData) async {
final hasForcedRescanHeights = !shouldUpdateSyncStatus;
CakeTor.instance = await CakeTorInstance.getInstance();
var node = Uri.parse("tcp://electrs.cakewallet.com:50001");
var node = scanData.node?.uri ?? Uri.parse("tcp://electrs.cakewallet.com:50001");
void log(String message, LogLevel level) {
printV("[Scanning] $message", file: scanData.debugLogPath, level: level);
+6 -2
View File
@@ -5,8 +5,8 @@ import 'package:cake_wallet/core/secure_storage.dart';
import 'package:cake_wallet/entities/exchange_api_mode.dart';
import 'package:cake_wallet/entities/fiat_api_mode.dart';
import 'package:cake_wallet/entities/haven_seed_store.dart';
import 'package:cake_wallet/entities/sync_status_display_mode.dart';
import 'package:cake_wallet/wownero/wownero.dart';
import 'package:cw_core/cake_hive.dart';
import 'package:cw_core/pathForWallet.dart';
import 'package:cake_wallet/entities/secret_store_key.dart';
import 'package:cw_core/root_dir.dart';
@@ -23,7 +23,6 @@ import 'package:cake_wallet/monero/monero.dart';
import 'package:cake_wallet/entities/contact.dart';
import 'package:cake_wallet/entities/fs_migration.dart';
import 'package:cw_core/wallet_info.dart';
import 'package:cw_core/wallet_info_legacy.dart' as wiLegacy;
import 'package:cake_wallet/exchange/trade.dart';
import 'package:encrypt/encrypt.dart' as encrypt;
import 'package:collection/collection.dart';
@@ -568,6 +567,11 @@ Future<void> defaultSettingsMigration(
type: WalletType.zcash,
currentNodePreferenceKey: PreferencesKey.currentZcashNodeIdKey,
);
break;
case 56:
await sharedPreferences.setString(
PreferencesKey.syncStatusDisplayMode, SyncStatusDisplayMode.blocksRemaining.name);
break;
default:
break;
}
+1 -1
View File
@@ -313,7 +313,7 @@ Future<void> initializeAppConfigs({bool loadWallet = true}) async {
payjoinSessionSource: payjoinSessionSource,
anonpayInvoiceInfo: anonpayInvoiceInfo,
havenSeedStore: havenSeedStore,
initialMigrationVersion: 55,
initialMigrationVersion: 56,
);
}