Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Whirlpool
whirlpool-client-cli
Commits
12e8d923
Commit
12e8d923
authored
Apr 03, 2020
by
zeroleak
Browse files
set cli.mix.clients = 5
parent
9e76fb56
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
10 deletions
+8
-10
src/main/java/com/samourai/whirlpool/cli/config/CliConfigFile.java
...java/com/samourai/whirlpool/cli/config/CliConfigFile.java
+4
-4
src/main/java/com/samourai/whirlpool/cli/run/RunUpgradeCli.java
...in/java/com/samourai/whirlpool/cli/run/RunUpgradeCli.java
+3
-4
src/main/java/com/samourai/whirlpool/cli/services/CliConfigService.java
...com/samourai/whirlpool/cli/services/CliConfigService.java
+0
-1
src/main/resources/application.properties
src/main/resources/application.properties
+1
-1
No files found.
src/main/java/com/samourai/whirlpool/cli/config/CliConfigFile.java
View file @
12e8d923
...
...
@@ -208,7 +208,7 @@ public abstract class CliConfigFile {
}
public
static
class
MixConfig
{
@NotEmpty
private
I
nt
eger
clients
;
@NotEmpty
private
i
nt
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
I
nt
eger
getClients
()
{
public
i
nt
getClients
()
{
return
clients
;
}
public
void
setClients
(
I
nt
eger
clients
)
{
public
void
setClients
(
i
nt
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
));
...
...
src/main/java/com/samourai/whirlpool/cli/run/RunUpgradeCli.java
View file @
12e8d923
...
...
@@ -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);
}
}
src/main/java/com/samourai/whirlpool/cli/services/CliConfigService.java
View file @
12e8d923
...
...
@@ -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
;
...
...
src/main/resources/application.properties
View file @
12e8d923
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment