mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-11-16 15:58:08 +00:00
mark mainnet changes
This commit is contained in:
parent
4172cc72df
commit
17c7c3c223
10 changed files with 14 additions and 9 deletions
|
@ -109,7 +109,7 @@ public class AlertManager {
|
||||||
"026c581ad773d987e6bd10785ac7f7e0e64864aedeb8bce5af37046de812a37854",
|
"026c581ad773d987e6bd10785ac7f7e0e64864aedeb8bce5af37046de812a37854",
|
||||||
"025b058c9f2c60d839669dbfa5578cf5a8117d60e6b70e2f0946f8a691273c6a36");
|
"025b058c9f2c60d839669dbfa5578cf5a8117d60e6b70e2f0946f8a691273c6a36");
|
||||||
case XMR_MAINNET:
|
case XMR_MAINNET:
|
||||||
return List.of();
|
return List.of(); // TODO: add mainnet dev pub keys for alerts
|
||||||
default:
|
default:
|
||||||
throw new RuntimeException("Unhandled base currency network: " + Config.baseCurrencyNetwork());
|
throw new RuntimeException("Unhandled base currency network: " + Config.baseCurrencyNetwork());
|
||||||
}
|
}
|
||||||
|
|
|
@ -108,7 +108,7 @@ public class PrivateNotificationManager implements MessageListener {
|
||||||
"026c581ad773d987e6bd10785ac7f7e0e64864aedeb8bce5af37046de812a37854",
|
"026c581ad773d987e6bd10785ac7f7e0e64864aedeb8bce5af37046de812a37854",
|
||||||
"025b058c9f2c60d839669dbfa5578cf5a8117d60e6b70e2f0946f8a691273c6a36");
|
"025b058c9f2c60d839669dbfa5578cf5a8117d60e6b70e2f0946f8a691273c6a36");
|
||||||
case XMR_MAINNET:
|
case XMR_MAINNET:
|
||||||
return List.of();
|
return List.of(); // TODO: add mainnet dev pub keys for private messages
|
||||||
default:
|
default:
|
||||||
throw new RuntimeException("Unhandled base currency network: " + Config.baseCurrencyNetwork());
|
throw new RuntimeException("Unhandled base currency network: " + Config.baseCurrencyNetwork());
|
||||||
}
|
}
|
||||||
|
|
|
@ -82,7 +82,7 @@ import java.util.concurrent.atomic.AtomicInteger;
|
||||||
@Slf4j
|
@Slf4j
|
||||||
public abstract class HavenoExecutable implements GracefulShutDownHandler, HavenoSetup.HavenoSetupListener, UncaughtExceptionHandler {
|
public abstract class HavenoExecutable implements GracefulShutDownHandler, HavenoSetup.HavenoSetupListener, UncaughtExceptionHandler {
|
||||||
|
|
||||||
public static final String DEFAULT_APP_NAME = "Haveno";
|
public static final String DEFAULT_APP_NAME = "Haveno"; // TODO: customize for your network to avoid user data corruption with other networks
|
||||||
|
|
||||||
public static final int EXIT_SUCCESS = 0;
|
public static final int EXIT_SUCCESS = 0;
|
||||||
public static final int EXIT_FAILURE = 1;
|
public static final int EXIT_FAILURE = 1;
|
||||||
|
|
|
@ -116,7 +116,7 @@ public class FilterManager {
|
||||||
|
|
||||||
publicKeys = useDevPrivilegeKeys ?
|
publicKeys = useDevPrivilegeKeys ?
|
||||||
Collections.singletonList(DevEnv.DEV_PRIVILEGE_PUB_KEY) :
|
Collections.singletonList(DevEnv.DEV_PRIVILEGE_PUB_KEY) :
|
||||||
List.of("0358d47858acdc41910325fce266571540681ef83a0d6fedce312bef9810793a27",
|
List.of("0358d47858acdc41910325fce266571540681ef83a0d6fedce312bef9810793a27", // TODO: replace with mainnet dev pub keys
|
||||||
"029340c3e7d4bb0f9e651b5f590b434fecb6175aeaa57145c7804ff05d210e534f",
|
"029340c3e7d4bb0f9e651b5f590b434fecb6175aeaa57145c7804ff05d210e534f",
|
||||||
"034dc7530bf66ffd9580aa98031ea9a18ac2d269f7c56c0e71eca06105b9ed69f9");
|
"034dc7530bf66ffd9580aa98031ea9a18ac2d269f7c56c0e71eca06105b9ed69f9");
|
||||||
|
|
||||||
|
|
|
@ -50,6 +50,7 @@ public class ProvidersRepository {
|
||||||
private static final List<String> DEFAULT_NODES = Arrays.asList(
|
private static final List<String> DEFAULT_NODES = Arrays.asList(
|
||||||
"http://elaxlgigphpicy5q7pi5wkz2ko2vgjbq4576vic7febmx4xcxvk6deqd.onion/", // Haveno
|
"http://elaxlgigphpicy5q7pi5wkz2ko2vgjbq4576vic7febmx4xcxvk6deqd.onion/", // Haveno
|
||||||
"http://a66ulzwhhudtqy6k2efnhodj2n6wnc5mnzjs3ocqtf47lwtcuo4wxyqd.onion/" // Cake
|
"http://a66ulzwhhudtqy6k2efnhodj2n6wnc5mnzjs3ocqtf47lwtcuo4wxyqd.onion/" // Cake
|
||||||
|
// TODO: add more onion price providers for mainnet
|
||||||
);
|
);
|
||||||
|
|
||||||
private final Config config;
|
private final Config config;
|
||||||
|
@ -131,7 +132,9 @@ public class ProvidersRepository {
|
||||||
providers = List.of(
|
providers = List.of(
|
||||||
"http://localhost:8078/",
|
"http://localhost:8078/",
|
||||||
"https://price.haveno.network/",
|
"https://price.haveno.network/",
|
||||||
"http://173.230.142.36:8078/");
|
"http://173.230.142.36:8078/"
|
||||||
|
// TODO: add more clearnet price providers for mainnet
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
providers = DEFAULT_NODES;
|
providers = DEFAULT_NODES;
|
||||||
}
|
}
|
||||||
|
|
|
@ -78,7 +78,7 @@ public class ArbitratorManager extends DisputeAgentManager<Arbitrator> {
|
||||||
"02a1a458df5acf4ab08fdca748e28f33a955a30854c8c1a831ee733dca7f0d2fcd",
|
"02a1a458df5acf4ab08fdca748e28f33a955a30854c8c1a831ee733dca7f0d2fcd",
|
||||||
"0374dd70f3fa6e47ec5ab97932e1cec6233e98e6ae3129036b17118650c44fd3de");
|
"0374dd70f3fa6e47ec5ab97932e1cec6233e98e6ae3129036b17118650c44fd3de");
|
||||||
case XMR_MAINNET:
|
case XMR_MAINNET:
|
||||||
return List.of();
|
return List.of(); // TODO: add mainnet arbitrator pubkeys
|
||||||
default:
|
default:
|
||||||
throw new RuntimeException("Unhandled base currency network: " + Config.baseCurrencyNetwork());
|
throw new RuntimeException("Unhandled base currency network: " + Config.baseCurrencyNetwork());
|
||||||
}
|
}
|
||||||
|
|
|
@ -65,6 +65,8 @@ import org.bitcoinj.core.Coin;
|
||||||
@Slf4j
|
@Slf4j
|
||||||
public class HavenoUtils {
|
public class HavenoUtils {
|
||||||
|
|
||||||
|
// TODO: change configuration for mainnet
|
||||||
|
|
||||||
// configure release date
|
// configure release date
|
||||||
private static final String RELEASE_DATE = "01-03-2024 00:00:00"; // optionally set to release date of the network in format dd-mm-yyyy to impose temporary limits, etc. e.g. "01-03-2024 00:00:00"
|
private static final String RELEASE_DATE = "01-03-2024 00:00:00"; // optionally set to release date of the network in format dd-mm-yyyy to impose temporary limits, etc. e.g. "01-03-2024 00:00:00"
|
||||||
public static final int RELEASE_LIMIT_DAYS = 60; // number of days to limit sell offers to max buy limit for new accounts
|
public static final int RELEASE_LIMIT_DAYS = 60; // number of days to limit sell offers to max buy limit for new accounts
|
||||||
|
|
|
@ -81,7 +81,7 @@ public class XmrNodes {
|
||||||
new XmrNode(MoneroNodesOption.PUBLIC, null, null, "node2.sethforprivacy.com", 38089, 3, null),
|
new XmrNode(MoneroNodesOption.PUBLIC, null, null, "node2.sethforprivacy.com", 38089, 3, null),
|
||||||
new XmrNode(MoneroNodesOption.PUBLIC, null, "plowsof3t5hogddwabaeiyrno25efmzfxyro2vligremt7sxpsclfaid.onion", null, 38089, 3, null)
|
new XmrNode(MoneroNodesOption.PUBLIC, null, "plowsof3t5hogddwabaeiyrno25efmzfxyro2vligremt7sxpsclfaid.onion", null, 38089, 3, null)
|
||||||
);
|
);
|
||||||
case XMR_MAINNET:
|
case XMR_MAINNET: // TODO: add or remove monerod endpoints for clients
|
||||||
return Arrays.asList(
|
return Arrays.asList(
|
||||||
new XmrNode(MoneroNodesOption.PROVIDED, null, null, "127.0.0.1", 18081, 1, "@local"),
|
new XmrNode(MoneroNodesOption.PROVIDED, null, null, "127.0.0.1", 18081, 1, "@local"),
|
||||||
new XmrNode(MoneroNodesOption.PROVIDED, null, null, "xmr-node.cakewallet.com", 18081, 2, "@cakewallet"),
|
new XmrNode(MoneroNodesOption.PROVIDED, null, null, "xmr-node.cakewallet.com", 18081, 2, "@cakewallet"),
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
# nodeaddress.onion:port [(@owner,@backup)]
|
# nodeaddress.onion:port [(@owner,@backup)] (add mainnet seed addresses)
|
||||||
placeholder.onion:8000 (@placeholder)
|
placeholder.onion:8000 (@placeholder)
|
|
@ -275,7 +275,7 @@ task packageInstallers {
|
||||||
" --java-options --add-opens=java.base/java.lang.reflect=ALL-UNNAMED" +
|
" --java-options --add-opens=java.base/java.lang.reflect=ALL-UNNAMED" +
|
||||||
" --java-options --add-opens=javafx.graphics/com.sun.javafx.scene=ALL-UNNAMED" +
|
" --java-options --add-opens=javafx.graphics/com.sun.javafx.scene=ALL-UNNAMED" +
|
||||||
" --java-options -Djava.net.preferIPv4Stack=true" +
|
" --java-options -Djava.net.preferIPv4Stack=true" +
|
||||||
" --arguments --baseCurrencyNetwork=XMR_STAGENET"
|
" --arguments --baseCurrencyNetwork=XMR_MAINNET"
|
||||||
// Warning: this will cause guice reflection exceptions and lead to issues with the guice internal cache
|
// Warning: this will cause guice reflection exceptions and lead to issues with the guice internal cache
|
||||||
// resulting in the UI not loading
|
// resulting in the UI not loading
|
||||||
// " --java-options -Djdk.module.illegalAccess=deny" +
|
// " --java-options -Djdk.module.illegalAccess=deny" +
|
||||||
|
|
Loading…
Reference in a new issue