Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migrate zano node to use SSL #2035

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions assets/zano_node_list.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
uri: 37.27.100.59:10500
useSSL: false
-
uri: zano.cakewallet.com:11211
uri: zano.cakewallet.com:443
is_default: true
useSSL: false
useSSL: true
10 changes: 9 additions & 1 deletion lib/entities/default_settings_migration.dart
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const solanaDefaultNodeUri = 'solana-mainnet.core.chainstack.com';
const tronDefaultNodeUri = 'api.trongrid.io';
const newCakeWalletBitcoinUri = 'btc-electrum.cakewallet.com:50002';
const wowneroDefaultNodeUri = 'node3.monerodevs.org:34568';
const zanoDefaultNodeUri = 'zano.cakewallet.com:11211';
const zanoDefaultNodeUri = 'zano.cakewallet.com:443';
const moneroWorldNodeUri = '.moneroworld.com';

Future<void> defaultSettingsMigration(
Expand Down Expand Up @@ -401,6 +401,14 @@ Future<void> defaultSettingsMigration(
enabled: false,
);
break;
case 48:
await _updateNode(
nodes: nodes,
currentUri: "zano.cakewallet.com:11211",
newUri: zanoDefaultNodeUri,
useSSL: true,
);
break;
default:
break;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/entities/zano_alias.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import 'package:http/http.dart' as http;
class ZanoAlias {
static Future<String?> fetchZanoAliasAddress(String alias) async {
try {
final uri = Uri.parse("http://zano.cakewallet.com:11211/json_rpc");
final uri = Uri.parse("https://zano.cakewallet.com:443/json_rpc");
final response = await http.post(
uri,
body: json.encode({
Expand Down
2 changes: 1 addition & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ Future<void> initializeAppConfigs() async {
secureStorage: secureStorage,
anonpayInvoiceInfo: anonpayInvoiceInfo,
havenSeedStore: havenSeedStore,
initialMigrationVersion: 47,
initialMigrationVersion: 48,
);
}

Expand Down
Loading