mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
Disable ETA by default, use electrs node as a fallback not hardcoded
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
@@ -313,7 +313,7 @@ Future<void> initializeAppConfigs({bool loadWallet = true}) async {
|
||||
payjoinSessionSource: payjoinSessionSource,
|
||||
anonpayInvoiceInfo: anonpayInvoiceInfo,
|
||||
havenSeedStore: havenSeedStore,
|
||||
initialMigrationVersion: 55,
|
||||
initialMigrationVersion: 56,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user