mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-08-03 20:24:24 -04:00
Change base networks from btc to xmr, e.g. BTC_REGTEST -> XMR_STAGENET (#55)
change base networks from btc to xmr, e.g. BTC_REGTEST -> XMR_STAGENET add xmr seed node files
This commit is contained in:
parent
de5bbf4a85
commit
9903821b18
62 changed files with 353 additions and 181 deletions
|
@ -19,16 +19,13 @@ package bisq.asset;
|
|||
|
||||
/**
|
||||
* Abstract base class for {@link Asset}s with their own dedicated blockchain, such as
|
||||
* {@link bisq.asset.coins.Bitcoin} itself or one of its many derivatives, competitors and
|
||||
* alternatives, often called "altcoins", such as {@link bisq.asset.coins.Litecoin},
|
||||
* {@link bisq.asset.coins.Ether}, {@link bisq.asset.coins.Monero} and
|
||||
* {@link bisq.asset.coins.Zcash}.
|
||||
* {@link bisq.asset.coins.Bitcoin}, {@link bisq.asset.coins.Ether}, and {@link bisq.asset.coins.Monero}.
|
||||
* <p>
|
||||
* In addition to the usual {@code Asset} properties, a {@code Coin} maintains information
|
||||
* about which {@link Network} it may be used on. By default, coins are constructed with
|
||||
* the assumption they are for use on that coin's "main network", or "main blockchain",
|
||||
* i.e. that they are "real" coins for use in a production environment. In testing
|
||||
* scenarios, however, a coin may be constructed for use only on "testnet" or "regtest"
|
||||
* scenarios, however, a coin may be constructed for use only on "testnet" or "stagenet"
|
||||
* networks.
|
||||
*
|
||||
* @author Chris Beams
|
||||
|
@ -36,7 +33,7 @@ package bisq.asset;
|
|||
*/
|
||||
public abstract class Coin extends AbstractAsset {
|
||||
|
||||
public enum Network { MAINNET, TESTNET, REGTEST }
|
||||
public enum Network { MAINNET, TESTNET, STAGENET }
|
||||
|
||||
private final Network network;
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@ public class BSQ extends Coin {
|
|||
public static class Regtest extends BSQ {
|
||||
|
||||
public Regtest() {
|
||||
super(Network.REGTEST, RegTestParams.get());
|
||||
super(Network.STAGENET, RegTestParams.get());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ public abstract class Bitcoin extends Coin {
|
|||
public static class Regtest extends Bitcoin {
|
||||
|
||||
public Regtest() {
|
||||
super(Network.REGTEST, RegTestParams.get());
|
||||
super(Network.STAGENET, RegTestParams.get());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue