diff --git a/lib/services/coins/bitcoincash/bitcoincash_wallet.dart b/lib/services/coins/bitcoincash/bitcoincash_wallet.dart index da45bd84e..4174dbc8e 100644 --- a/lib/services/coins/bitcoincash/bitcoincash_wallet.dart +++ b/lib/services/coins/bitcoincash/bitcoincash_wallet.dart @@ -77,7 +77,7 @@ bip32.BIP32 getBip32NodeFromRoot( int chain, int index, bip32.BIP32 root, DerivePathType derivePathType) { String coinType; switch (root.network.wif) { - case 0x9e: // bch mainnet wif + case 0x80: // bch mainnet wif coinType = "145"; // bch mainnet break; default: @@ -298,16 +298,16 @@ class BitcoinCashWallet extends CoinServiceAPI { final features = await electrumXClient.getServerFeatures(); Logging.instance.log("features: $features", level: LogLevel.Info); switch (coin) { - case Coin.dogecoin: + case Coin.bitcoincash: if (features['genesis_hash'] != GENESIS_HASH_MAINNET) { throw Exception("genesis hash does not match main net!"); } break; - case Coin.dogecoinTestNet: - if (features['genesis_hash'] != GENESIS_HASH_TESTNET) { - throw Exception("genesis hash does not match test net!"); - } - break; + // case Coin.dogecoinTestNet: + // if (features['genesis_hash'] != GENESIS_HASH_TESTNET) { + // throw Exception("genesis hash does not match test net!"); + // } + // break; default: throw Exception( "Attempted to generate a BitcoinCashWallet using a non dogecoin coin type: ${coin.name}"); diff --git a/lib/utilities/default_nodes.dart b/lib/utilities/default_nodes.dart index 09e373df0..e986c9a0b 100644 --- a/lib/utilities/default_nodes.dart +++ b/lib/utilities/default_nodes.dart @@ -82,7 +82,7 @@ abstract class DefaultNodes { ); static NodeModel get bitcoincash => NodeModel( - host: "https://electrum1.cipig.net:20055", + host: "electrum1.cipig.net", port: 20055, name: defaultName, id: _nodeId(Coin.bitcoincash),