fix ppc testnet port and map coins to nodes instead oif manually

This commit is contained in:
julian 2024-05-10 11:38:16 -06:00
parent 5b573c579c
commit 5cda658bd2

View file

@ -17,31 +17,9 @@ abstract class DefaultNodes {
static const String defaultName = "Stack Default"; static const String defaultName = "Stack Default";
@Deprecated("old and decrepit") @Deprecated("old and decrepit")
static List<NodeModel> get all => [ static List<NodeModel> get all => Coin.values
bitcoin, .map((e) => DefaultNodes.getNodeFor(e))
litecoin, .toList(growable: false);
dogecoin,
firo,
monero,
eCash,
epicCash,
ethereum,
bitcoincash,
namecoin,
wownero,
particl,
peercoin,
stellar,
nano,
banano,
tezos,
bitcoinTestnet,
litecoinTestNet,
bitcoincashTestnet,
dogecoinTestnet,
firoTestnet,
stellarTestnet,
];
static NodeModel get bitcoin => NodeModel( static NodeModel get bitcoin => NodeModel(
host: "bitcoin.stackwallet.com", host: "bitcoin.stackwallet.com",
@ -325,7 +303,7 @@ abstract class DefaultNodes {
static NodeModel get peercoinTestNet => NodeModel( static NodeModel get peercoinTestNet => NodeModel(
host: "testnet-electrum.peercoinexplorer.net", host: "testnet-electrum.peercoinexplorer.net",
port: 50009, port: 50002,
name: DefaultNodes.defaultName, name: DefaultNodes.defaultName,
id: DefaultNodes.buildId(Coin.peercoinTestNet), id: DefaultNodes.buildId(Coin.peercoinTestNet),
useSSL: true, useSSL: true,