Switch tron default node (#1488)
Some checks failed
Cache Dependencies / test (push) Has been cancelled

* 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
This commit is contained in:
Omar Hatem 2024-06-10 17:24:52 +02:00 committed by GitHub
parent 5a6502a35a
commit 245ac5ae3c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 4 deletions

View file

@ -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

View file

@ -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(
@ -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;
}

View file

@ -202,7 +202,7 @@ Future<void> initializeAppConfigs() async {
transactionDescriptions: transactionDescriptions,
secureStorage: secureStorage,
anonpayInvoiceInfo: anonpayInvoiceInfo,
initialMigrationVersion: 35,
initialMigrationVersion: 36,
);
}