mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-12-23 03:59:36 +00:00
drop --mainnet param from monerod startup config
This commit is contained in:
parent
f9d0bb414e
commit
a01a6f7f95
1 changed files with 7 additions and 8 deletions
|
@ -31,7 +31,6 @@ import javax.inject.Singleton;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -41,7 +40,6 @@ import java.util.List;
|
||||||
@Singleton
|
@Singleton
|
||||||
public class CoreMoneroNodeService {
|
public class CoreMoneroNodeService {
|
||||||
|
|
||||||
private static final String MONERO_NETWORK_TYPE = Config.baseCurrencyNetwork().getNetwork().toLowerCase();
|
|
||||||
public static final String MONEROD_DIR = Config.baseCurrencyNetwork() == BaseCurrencyNetwork.XMR_LOCAL ? System.getProperty("user.dir") + File.separator + ".localnet" : Config.appDataDir().getAbsolutePath();
|
public static final String MONEROD_DIR = Config.baseCurrencyNetwork() == BaseCurrencyNetwork.XMR_LOCAL ? System.getProperty("user.dir") + File.separator + ".localnet" : Config.appDataDir().getAbsolutePath();
|
||||||
public static final String MONEROD_NAME = Utilities.isWindows() ? "monerod.exe" : "monerod";
|
public static final String MONEROD_NAME = Utilities.isWindows() ? "monerod.exe" : "monerod";
|
||||||
public static final String MONEROD_PATH = MONEROD_DIR + File.separator + MONEROD_NAME;
|
public static final String MONEROD_PATH = MONEROD_DIR + File.separator + MONEROD_NAME;
|
||||||
|
@ -51,12 +49,13 @@ public class CoreMoneroNodeService {
|
||||||
private final List<MoneroNodeServiceListener> listeners = new ArrayList<>();
|
private final List<MoneroNodeServiceListener> listeners = new ArrayList<>();
|
||||||
|
|
||||||
// required arguments
|
// required arguments
|
||||||
private static final List<String> MONEROD_ARGS = Arrays.asList(
|
private static final List<String> MONEROD_ARGS = new ArrayList<String>();
|
||||||
MONEROD_PATH,
|
static {
|
||||||
"--" + MONERO_NETWORK_TYPE,
|
MONEROD_ARGS.add(MONEROD_PATH);
|
||||||
"--no-igd",
|
MONEROD_ARGS.add("--no-igd");
|
||||||
"--hide-my-port"
|
MONEROD_ARGS.add("--hide-my-port");
|
||||||
);
|
if (!Config.baseCurrencyNetwork().isMainnet()) MONEROD_ARGS.add("--" + Config.baseCurrencyNetwork().getNetwork().toLowerCase());
|
||||||
|
}
|
||||||
|
|
||||||
// client to the local Monero node
|
// client to the local Monero node
|
||||||
private MoneroDaemonRpc daemon;
|
private MoneroDaemonRpc daemon;
|
||||||
|
|
Loading…
Reference in a new issue