mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-03-12 09:32:33 +00:00
fix: check node based on network
This commit is contained in:
parent
7f792fcd60
commit
2df4a17d5e
1 changed files with 2 additions and 1 deletions
|
@ -371,7 +371,8 @@ class CWBitcoin extends Bitcoin {
|
|||
final bitcoinWallet = wallet as ElectrumWallet;
|
||||
final node = bitcoinWallet.node;
|
||||
|
||||
return node?.uri.host == '198.58.111.154' && node?.uri.port == 50002;
|
||||
return node?.uri.host == '198.58.111.154' &&
|
||||
node?.uri.port == (wallet.network == BitcoinNetwork.testnet ? 50002 : 50001);
|
||||
}
|
||||
|
||||
@override
|
||||
|
|
Loading…
Reference in a new issue