Commit c13541e7 authored by Georg Mittendorfer's avatar Georg Mittendorfer

Rename getTrytes max hashes configuration parameter.

parent 14d49969
......@@ -34,7 +34,7 @@ public class GetTrytesValidator implements Validator {
public GetTrytesValidator(Environment env, MinMaxValidator minMaxValidator) {
this.minMaxValidator = minMaxValidator;
max = env.getProperty("iri.getTrytes.hashes.size.max", Integer.class, GetTrytes.DEFAULT_HASHES_SIZE_MAX);
max = env.getProperty("iri.getTrytes.hashes.max", Integer.class, GetTrytes.DEFAULT_HASHES_SIZE_MAX);
}
@Override
......
......@@ -85,12 +85,12 @@ iri.timeout.getTrytes=10s
pow.timeout.attachToTangle=5s
iri.getTransactionsToApprove.depth.max=15
iri.getTransactionsToApprove.depth.min=1
iri.attachToTangle.minWeightMagnitude.max=15
iri.attachToTangle.minWeightMagnitude.min=14
iri.attachToTangle.trytes.max=30
iri.getTransactionsToApprove.depth.max=10
iri.getTransactionsToApprove.depth.min=1
iri.getTrytes.hashes.size.max=500
iri.getTrytes.hashes.max=500
# Log configuration
logging.file=piri.log
......
......@@ -48,7 +48,7 @@ import static org.junit.Assert.assertTrue;
"iri.allow.addNeighbors=false",
"iri.getTransactionsToApprove.depth.min=2",
"iri.attachToTangle.minWeightMagnitude.min=2",
"iri.getTrytes.hashes.size.max=1"
"iri.getTrytes.hashes.max=1"
}, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
public class IriApiHandlerErrorsSysIT {
......
......@@ -42,7 +42,7 @@ public class GetTrytesValidatorTest {
@Before
public void initEnvironment() {
Environment env = mock(Environment.class);
when(env.getProperty("iri.getTrytes.hashes.size.max", Integer.class, GetTrytes.DEFAULT_HASHES_SIZE_MAX))
when(env.getProperty("iri.getTrytes.hashes.max", Integer.class, GetTrytes.DEFAULT_HASHES_SIZE_MAX))
.thenReturn(42);
validator = new GetTrytesValidator(env, minMaxValidator);
}
......
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