mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-10 12:54:38 +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)) {
|
if (!getNodeIsCakeElectrs(wallet)) {
|
||||||
final node = Node(
|
final node = Node(
|
||||||
useSSL: false,
|
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;
|
node.type = WalletType.bitcoin;
|
||||||
|
|
||||||
|
@ -536,7 +536,7 @@ class CWBitcoin extends Bitcoin {
|
||||||
if (!getNodeIsCakeElectrs(wallet)) {
|
if (!getNodeIsCakeElectrs(wallet)) {
|
||||||
final node = Node(
|
final node = Node(
|
||||||
useSSL: false,
|
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;
|
node.type = WalletType.bitcoin;
|
||||||
await bitcoinWallet.connectToNode(node: node);
|
await bitcoinWallet.connectToNode(node: node);
|
||||||
|
@ -549,7 +549,7 @@ class CWBitcoin extends Bitcoin {
|
||||||
final bitcoinWallet = wallet as ElectrumWallet;
|
final bitcoinWallet = wallet as ElectrumWallet;
|
||||||
final node = bitcoinWallet.node;
|
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);
|
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 newCakeWalletMoneroUri = 'xmr-node.cakewallet.com:18081';
|
||||||
const cakeWalletBitcoinElectrumUri = 'electrum.cakewallet.com:50002';
|
const cakeWalletBitcoinElectrumUri = 'electrum.cakewallet.com:50002';
|
||||||
const cakeWalletSilentPaymentsElectrsUri = '198.58.111.154:50001';
|
const cakeWalletSilentPaymentsElectrsUri = 'electrs.cakewallet.com:50001';
|
||||||
const publicBitcoinTestnetElectrumAddress = '198.58.111.154';
|
const publicBitcoinTestnetElectrumAddress = 'electrs.cakewallet.com';
|
||||||
const publicBitcoinTestnetElectrumPort = '50002';
|
const publicBitcoinTestnetElectrumPort = '50002';
|
||||||
const publicBitcoinTestnetElectrumUri =
|
const publicBitcoinTestnetElectrumUri =
|
||||||
'$publicBitcoinTestnetElectrumAddress:$publicBitcoinTestnetElectrumPort';
|
'$publicBitcoinTestnetElectrumAddress:$publicBitcoinTestnetElectrumPort';
|
||||||
|
|
|
@ -266,8 +266,8 @@ class CryptoBalanceWidget extends StatelessWidget {
|
||||||
GestureDetector(
|
GestureDetector(
|
||||||
behavior: HitTestBehavior.opaque,
|
behavior: HitTestBehavior.opaque,
|
||||||
onTap: () => launchUrl(
|
onTap: () => launchUrl(
|
||||||
// TODO: Update URL
|
Uri.parse(
|
||||||
Uri.https("guides.cakewallet.com"),
|
"https://guides.cakewallet.com/docs/cryptos/bitcoin/#silent-payments"),
|
||||||
mode: LaunchMode.externalApplication,
|
mode: LaunchMode.externalApplication,
|
||||||
),
|
),
|
||||||
child: Row(
|
child: Row(
|
||||||
|
|
Loading…
Reference in a new issue