Skip to content

Commit

Permalink
Switch tron default node (#1488)
Browse files Browse the repository at this point in the history
* fixes and minor enhancements for SP flow

* fix build

* change dfx text

* minor fixes

* pass use electrs to setListeners

* comment out connecting on failure for now

* Switch tron default node
  • Loading branch information
OmarHatem28 authored Jun 10, 2024
1 parent 5a6502a commit 245ac5a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions assets/tron_node_list.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
-
uri: tron-rpc.publicnode.com:443
is_default: true
is_default: false
useSSL: true
-
uri: api.trongrid.io
is_default: false
is_default: true
useSSL: true
5 changes: 4 additions & 1 deletion lib/entities/default_settings_migration.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const cakeWalletBitcoinCashDefaultNodeUri = 'bitcoincash.stackwallet.com:50002';
const nanoDefaultNodeUri = 'rpc.nano.to';
const nanoDefaultPowNodeUri = 'rpc.nano.to';
const solanaDefaultNodeUri = 'rpc.ankr.com';
const tronDefaultNodeUri = 'tron-rpc.publicnode.com:443';
const tronDefaultNodeUri = 'api.trongrid.io';
const newCakeWalletBitcoinUri = 'btc-electrum.cakewallet.com:50002';

Future<void> defaultSettingsMigration(
Expand Down Expand Up @@ -230,6 +230,9 @@ Future<void> defaultSettingsMigration(
case 35:
await _switchElectRsNode(nodes, sharedPreferences);
break;
case 36:
await changeTronCurrentNodeToDefault(sharedPreferences: sharedPreferences, nodes: nodes);
break;
default:
break;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ Future<void> initializeAppConfigs() async {
transactionDescriptions: transactionDescriptions,
secureStorage: secureStorage,
anonpayInvoiceInfo: anonpayInvoiceInfo,
initialMigrationVersion: 35,
initialMigrationVersion: 36,
);
}

Expand Down

0 comments on commit 245ac5a

Please sign in to comment.