Commit 12e8d923 authored by zeroleak's avatar zeroleak
Browse files

set cli.mix.clients = 5

parent 9e76fb56
......@@ -208,7 +208,7 @@ public abstract class CliConfigFile {
}
public static class MixConfig {
@NotEmpty private Integer clients;
@NotEmpty private int clients;
@NotEmpty private int clientsPerPool;
@NotEmpty private int clientDelay;
@NotEmpty private int tx0Delay;
......@@ -230,11 +230,11 @@ public abstract class CliConfigFile {
this.overspend = copy.overspend != null ? new HashMap<>(copy.overspend) : null;
}
public Integer getClients() {
public int getClients() {
return clients;
}
public void setClients(Integer clients) {
public void setClients(int clients) {
this.clients = clients;
}
......@@ -296,7 +296,7 @@ public abstract class CliConfigFile {
public Map<String, String> getConfigInfo() {
Map<String, String> configInfo = new HashMap<>();
configInfo.put("cli/mix/clients", clients != null ? Integer.toString(clients) : "null");
configInfo.put("cli/mix/clients", Integer.toString(clients));
configInfo.put("cli/mix/clientsPerPool", Integer.toString(clientsPerPool));
configInfo.put("cli/mix/clientDelay", Integer.toString(clientDelay));
configInfo.put("cli/mix/tx0Delay", Integer.toString(tx0Delay));
......
......@@ -3,7 +3,6 @@ package com.samourai.whirlpool.cli.run;
import com.samourai.whirlpool.cli.config.CliConfig;
import com.samourai.whirlpool.cli.services.CliConfigService;
import java.lang.invoke.MethodHandles;
import java.util.Properties;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
......@@ -32,8 +31,8 @@ public class RunUpgradeCli {
log.info(" - Upgrading to: V3");
// unset mix.clients=
Properties props = cliConfigService.loadProperties();
props.put(CliConfigService.KEY_MIX_CLIENTS, "");
cliConfigService.saveProperties(props);
// Properties props = cliConfigService.loadProperties();
// props.put(CliConfigService.KEY_MIX_CLIENTS, "");
// cliConfigService.saveProperties(props);
}
}
......@@ -42,7 +42,6 @@ public class CliConfigService {
private static final String KEY_DOJO_APIKEY = "cli.dojo.apiKey";
public static final String KEY_DOJO_ENABLED = "cli.dojo.enabled";
private static final String KEY_VERSION = "cli.version";
public static final String KEY_MIX_CLIENTS = "cli.mix.clients";
private CliConfig cliConfig;
private CliStatus cliStatus;
......
......@@ -31,7 +31,7 @@ cli.tx0MinConfirmations = 0
cli.proxy =
cli.requestTimeout = 30000
cli.mix.clients =
cli.mix.clients = 5
cli.mix.clientsPerPool = 1
cli.mix.tx0MaxOutputs = 0
cli.mix.clientDelay = 15
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment