Remove testnet and regtest for dash and ltc

This commit is contained in:
Manfred Karrer 2018-12-08 17:53:29 +01:00
parent 2e4b8ea389
commit 6c8f405488
No known key found for this signature in database
GPG Key ID: 401250966A6B2C46
5 changed files with 10 additions and 72 deletions

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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

View File

@ -24,7 +24,7 @@ import org.junit.Test;
public class DashTest extends AbstractAssetTest {
public DashTest() {
super(new Dash.Mainnet());
super(new Dash());
}
@Test

View File

@ -24,7 +24,7 @@ import org.junit.Test;
public class LitecoinTest extends AbstractAssetTest {
public LitecoinTest() {
super(new Litecoin.Mainnet());
super(new Litecoin());
}
@Test