disable PingCheck

This commit is contained in:
vekamo 2024-10-27 17:07:52 +04:00
parent 652c1412c8
commit 8610a7261c
5 changed files with 28 additions and 27 deletions

@ -1 +1 @@
Subproject commit 0bb1b1ced6e0d3c66e383698f89825754c692986
Subproject commit 1d48c0a8aa394324e7c39267e5654038834aff95

@ -1 +1 @@
Subproject commit 5b08645a5b5d30955f4bde2a624ff89ef516e452
Subproject commit 8e9e20e2f90387dcc6e23833d186a84ad3ac372a

View file

@ -17,7 +17,7 @@ abstract class DefaultMwcMqs {
static List<String> get defaultIds => ['americas', 'asia', 'europe'];
static MwcMqsServerModel get americas => MwcMqsServerModel(
host: 'MwcMqs.stackwallet.com',
host: 'mqs.mwc.mw',
port: 443,
name: 'Americas',
id: 'americas',
@ -28,7 +28,7 @@ abstract class DefaultMwcMqs {
);
static MwcMqsServerModel get asia => MwcMqsServerModel(
host: 'MwcMqs.hyperbig.com',
host: 'mqs.mwc.mw',
port: 443,
name: 'Asia',
id: 'asia',
@ -39,7 +39,7 @@ abstract class DefaultMwcMqs {
);
static MwcMqsServerModel get europe => MwcMqsServerModel(
host: 'MwcMqs.fastepic.eu',
host: 'mqs.mwc.mw',
port: 443,
name: 'Europe',
id: 'europe',

View file

@ -524,7 +524,7 @@ class MimblewimblecoinWallet extends Bip39Wallet {
);
//Store MwcMqs address info
await _generateAndStoreReceivingAddressForIndex(0);
// await _generateAndStoreReceivingAddressForIndex(0);
// subtract a couple days to ensure we have a buffer for SWB
final bufferedCreateHeight = _calculateRestoreHeightFrom(
@ -754,9 +754,9 @@ class MimblewimblecoinWallet extends Bip39Wallet {
value: walletOpen,
);
await _generateAndStoreReceivingAddressForIndex(
mimblewimblecoinData.receivingIndex,
);
// await _generateAndStoreReceivingAddressForIndex(
// mimblewimblecoinData.receivingIndex,
// );
}
});
@ -799,7 +799,7 @@ class MimblewimblecoinWallet extends Bip39Wallet {
// this will always be zero????
final int curAdd = await _getCurrentIndex();
await _generateAndStoreReceivingAddressForIndex(curAdd);
// await _generateAndStoreReceivingAddressForIndex(curAdd);
await _startScans();
@ -1087,22 +1087,23 @@ class MimblewimblecoinWallet extends Bip39Wallet {
@override
Future<bool> pingCheck() async {
try {
final node = nodeService.getPrimaryNodeFor(currency: cryptoCurrency);
// force unwrap optional as we want connection test to fail if wallet
// wasn't initialized or mwcmqs node was set to null
return await testMwcNodeConnection(
NodeFormData()
..host = node!.host
..useSSL = node.useSSL
..port = node.port,
) !=
null;
} catch (e, s) {
Logging.instance.log("$e\n$s", level: LogLevel.Info);
return false;
}
return true;
//try {
// final node = nodeService.getPrimaryNodeFor(currency: cryptoCurrency);
//
// // force unwrap optional as we want connection test to fail if wallet
// // wasn't initialized or mwcmqs node was set to null
// return await testMwcNodeConnection(
// NodeFormData()
// ..host = node!.host
// ..useSSL = node.useSSL
// ..port = node.port,
// ) !=
// null;
//} catch (e, s) {
// Logging.instance.log("$e\n$s", level: LogLevel.Info);
// return false;
//}
}
@override

View file

@ -959,7 +959,7 @@ packages:
source: hosted
version: "2.4.4"
frontend_server_client:
dependency: "direct dev"
dependency: transitive
description:
name: frontend_server_client
sha256: f64a0333a82f30b0cca061bc3d143813a486dc086b574bfb233b7c1372427694