Commit 14d49969 authored by Georg Mittendorfer's avatar Georg Mittendorfer

Rename attachToTangle max trytes configuration parameter.

parent 4655c91a
......@@ -42,7 +42,7 @@ public class AttachToTangleValidator implements Validator {
this.minMaxValidator = minMaxValidator;
min = env.getProperty("iri.attachToTangle.minWeightMagnitude.min", Integer.class, AttachToTangle.DEFAULT_WEIGHT_MIN);
max = env.getProperty("iri.attachToTangle.minWeightMagnitude.max", Integer.class, AttachToTangle.DEFAULT_WEIGHT_MAX);
maxTrytes = env.getProperty("iri.attachToTangle.trytes.max.count", Integer.class, AttachToTangle.DEFAULT_MAX_TRYTES_COUNT);
maxTrytes = env.getProperty("iri.attachToTangle.trytes.max", Integer.class, AttachToTangle.DEFAULT_MAX_TRYTES_COUNT);
}
@Override
......
......@@ -87,7 +87,7 @@ pow.timeout.attachToTangle=5s
iri.attachToTangle.minWeightMagnitude.max=15
iri.attachToTangle.minWeightMagnitude.min=14
iri.attachToTangle.trytes.max.count=25
iri.attachToTangle.trytes.max=30
iri.getTransactionsToApprove.depth.max=10
iri.getTransactionsToApprove.depth.min=1
iri.getTrytes.hashes.size.max=500
......
......@@ -46,7 +46,7 @@ public class AttachToTangleValidatorTest {
.thenReturn(3);
when(env.getProperty("iri.attachToTangle.minWeightMagnitude.min", Integer.class, AttachToTangle.DEFAULT_WEIGHT_MIN))
.thenReturn(2);
when(env.getProperty("iri.attachToTangle.trytes.max.count", Integer.class, AttachToTangle.DEFAULT_MAX_TRYTES_COUNT))
when(env.getProperty("iri.attachToTangle.trytes.max", Integer.class, AttachToTangle.DEFAULT_MAX_TRYTES_COUNT))
.thenReturn(5);
validator = new AttachToTangleValidator(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