mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-23 03:59:23 +00:00
feat: node domain
This commit is contained in:
parent
00ceb933e4
commit
932161a32d
3 changed files with 7 additions and 7 deletions
|
@ -510,7 +510,7 @@ class CWBitcoin extends Bitcoin {
|
|||
if (!getNodeIsCakeElectrs(wallet)) {
|
||||
final node = Node(
|
||||
useSSL: false,
|
||||
uri: '198.58.111.154:${(wallet.network == BitcoinNetwork.testnet ? 50002 : 50001)}',
|
||||
uri: 'electrs.cakewallet.com:${(wallet.network == BitcoinNetwork.testnet ? 50002 : 50001)}',
|
||||
);
|
||||
node.type = WalletType.bitcoin;
|
||||
|
||||
|
@ -536,7 +536,7 @@ class CWBitcoin extends Bitcoin {
|
|||
if (!getNodeIsCakeElectrs(wallet)) {
|
||||
final node = Node(
|
||||
useSSL: false,
|
||||
uri: '198.58.111.154:${(wallet.network == BitcoinNetwork.testnet ? 50002 : 50001)}',
|
||||
uri: 'electrs.cakewallet.com:${(wallet.network == BitcoinNetwork.testnet ? 50002 : 50001)}',
|
||||
);
|
||||
node.type = WalletType.bitcoin;
|
||||
await bitcoinWallet.connectToNode(node: node);
|
||||
|
@ -549,7 +549,7 @@ class CWBitcoin extends Bitcoin {
|
|||
final bitcoinWallet = wallet as ElectrumWallet;
|
||||
final node = bitcoinWallet.node;
|
||||
|
||||
return node?.uri.host == '198.58.111.154' &&
|
||||
return node?.uri.host == 'electrs.cakewallet.com' &&
|
||||
node?.uri.port == (wallet.network == BitcoinNetwork.testnet ? 50002 : 50001);
|
||||
}
|
||||
|
||||
|
|
|
@ -24,8 +24,8 @@ import 'package:collection/collection.dart';
|
|||
|
||||
const newCakeWalletMoneroUri = 'xmr-node.cakewallet.com:18081';
|
||||
const cakeWalletBitcoinElectrumUri = 'electrum.cakewallet.com:50002';
|
||||
const cakeWalletSilentPaymentsElectrsUri = '198.58.111.154:50001';
|
||||
const publicBitcoinTestnetElectrumAddress = '198.58.111.154';
|
||||
const cakeWalletSilentPaymentsElectrsUri = 'electrs.cakewallet.com:50001';
|
||||
const publicBitcoinTestnetElectrumAddress = 'electrs.cakewallet.com';
|
||||
const publicBitcoinTestnetElectrumPort = '50002';
|
||||
const publicBitcoinTestnetElectrumUri =
|
||||
'$publicBitcoinTestnetElectrumAddress:$publicBitcoinTestnetElectrumPort';
|
||||
|
|
|
@ -266,8 +266,8 @@ class CryptoBalanceWidget extends StatelessWidget {
|
|||
GestureDetector(
|
||||
behavior: HitTestBehavior.opaque,
|
||||
onTap: () => launchUrl(
|
||||
// TODO: Update URL
|
||||
Uri.https("guides.cakewallet.com"),
|
||||
Uri.parse(
|
||||
"https://guides.cakewallet.com/docs/cryptos/bitcoin/#silent-payments"),
|
||||
mode: LaunchMode.externalApplication,
|
||||
),
|
||||
child: Row(
|
||||
|
|
Loading…
Reference in a new issue