mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 09:52:23 +01:00
Remove testnet and regtest for dash and ltc
This commit is contained in:
parent
2e4b8ea389
commit
6c8f405488
@ -21,38 +21,9 @@ import bisq.asset.Base58BitcoinAddressValidator;
|
||||
import bisq.asset.Coin;
|
||||
|
||||
import org.libdohj.params.DashMainNetParams;
|
||||
import org.libdohj.params.DashRegTestParams;
|
||||
import org.libdohj.params.DashTestNet3Params;
|
||||
|
||||
import org.bitcoinj.core.NetworkParameters;
|
||||
|
||||
public abstract class Dash extends Coin {
|
||||
|
||||
public Dash(Network network, NetworkParameters networkParameters) {
|
||||
super("Dash", "DASH", new Base58BitcoinAddressValidator(networkParameters), network);
|
||||
}
|
||||
|
||||
|
||||
public static class Mainnet extends Dash {
|
||||
|
||||
public Mainnet() {
|
||||
super(Network.MAINNET, DashMainNetParams.get());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public static class Testnet extends Dash {
|
||||
|
||||
public Testnet() {
|
||||
super(Network.TESTNET, DashTestNet3Params.get());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public static class Regtest extends Dash {
|
||||
|
||||
public Regtest() {
|
||||
super(Network.REGTEST, DashRegTestParams.get());
|
||||
}
|
||||
public class Dash extends Coin {
|
||||
public Dash() {
|
||||
super("Dash", "DASH", new Base58BitcoinAddressValidator(DashMainNetParams.get()), Network.MAINNET);
|
||||
}
|
||||
}
|
||||
|
@ -21,38 +21,9 @@ import bisq.asset.Base58BitcoinAddressValidator;
|
||||
import bisq.asset.Coin;
|
||||
|
||||
import org.libdohj.params.LitecoinMainNetParams;
|
||||
import org.libdohj.params.LitecoinRegTestParams;
|
||||
import org.libdohj.params.LitecoinTestNet3Params;
|
||||
|
||||
import org.bitcoinj.core.NetworkParameters;
|
||||
|
||||
public abstract class Litecoin extends Coin {
|
||||
|
||||
public Litecoin(Network network, NetworkParameters networkParameters) {
|
||||
super("Litecoin", "LTC", new Base58BitcoinAddressValidator(networkParameters), network);
|
||||
}
|
||||
|
||||
|
||||
public static class Mainnet extends Litecoin {
|
||||
|
||||
public Mainnet() {
|
||||
super(Network.MAINNET, LitecoinMainNetParams.get());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public static class Testnet extends Litecoin {
|
||||
|
||||
public Testnet() {
|
||||
super(Network.TESTNET, LitecoinTestNet3Params.get());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public static class Regtest extends Litecoin {
|
||||
|
||||
public Regtest() {
|
||||
super(Network.REGTEST, LitecoinRegTestParams.get());
|
||||
}
|
||||
public class Litecoin extends Coin {
|
||||
public Litecoin() {
|
||||
super("Litecoin", "LTC", new Base58BitcoinAddressValidator(LitecoinMainNetParams.get()), Network.MAINNET);
|
||||
}
|
||||
}
|
||||
|
@ -17,9 +17,7 @@ bisq.asset.coins.Byteball
|
||||
bisq.asset.coins.Chaucha
|
||||
bisq.asset.coins.Counterparty
|
||||
bisq.asset.coins.Croat
|
||||
bisq.asset.coins.Dash$Mainnet
|
||||
bisq.asset.coins.Dash$Regtest
|
||||
bisq.asset.coins.Dash$Testnet
|
||||
bisq.asset.coins.Dash
|
||||
bisq.asset.coins.Decred
|
||||
bisq.asset.coins.Dogecoin
|
||||
bisq.asset.coins.Dragonglass
|
||||
@ -27,9 +25,7 @@ bisq.asset.coins.Ether
|
||||
bisq.asset.coins.EtherClassic
|
||||
bisq.asset.coins.Gridcoin
|
||||
bisq.asset.coins.Kekcoin
|
||||
bisq.asset.coins.Litecoin$Mainnet
|
||||
bisq.asset.coins.Litecoin$Regtest
|
||||
bisq.asset.coins.Litecoin$Testnet
|
||||
bisq.asset.coins.Litecoin
|
||||
bisq.asset.coins.Mask
|
||||
bisq.asset.coins.MobitGlobal
|
||||
bisq.asset.coins.Monero
|
||||
|
@ -24,7 +24,7 @@ import org.junit.Test;
|
||||
public class DashTest extends AbstractAssetTest {
|
||||
|
||||
public DashTest() {
|
||||
super(new Dash.Mainnet());
|
||||
super(new Dash());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -24,7 +24,7 @@ import org.junit.Test;
|
||||
public class LitecoinTest extends AbstractAssetTest {
|
||||
|
||||
public LitecoinTest() {
|
||||
super(new Litecoin.Mainnet());
|
||||
super(new Litecoin());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Loading…
Reference in New Issue
Block a user