Skip to content
This repository has been archived by the owner on Jun 7, 2023. It is now read-only.

Commit

Permalink
disable tangle size adjustment by default
Browse files Browse the repository at this point in the history
  • Loading branch information
vuapo-eth committed Feb 22, 2019
1 parent 9741f43 commit 2eca314
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/iota/ict/utils/properties/Properties.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class Properties implements Cloneable {
protected long antiSpamAbs = 1000;
protected boolean guiEnabled = true;
protected long tangleCapacity = 10000;
protected double maxHeapSize = 0.7;
protected double maxHeapSize = 1.01; // above 1 to disable, causes trouble because of slow garbage collector
protected long minForwardDelay = 0;
protected long maxForwardDelay = 200;
protected String name = "ict";
Expand Down Expand Up @@ -70,7 +70,7 @@ public Properties() {
}

Properties(java.util.Properties propObject) {
maxHeapSize = readDoublePorperty(propObject, Property.max_heap_size, 0.01, 1.0, DEFAULT_PROPERTIES.maxHeapSize);
maxHeapSize = readDoublePorperty(propObject, Property.max_heap_size, 0.01, 1.01, DEFAULT_PROPERTIES.maxHeapSize);
tangleCapacity = readLongProperty(propObject, Property.tangle_capacity, 10, Long.MAX_VALUE, DEFAULT_PROPERTIES.tangleCapacity);
antiSpamAbs = readLongProperty(propObject, Property.anti_spam_abs, 1, Long.MAX_VALUE, DEFAULT_PROPERTIES.antiSpamAbs);
minForwardDelay = readLongProperty(propObject, Property.min_forward_delay, 0, 10000, DEFAULT_PROPERTIES.minForwardDelay);
Expand Down

0 comments on commit 2eca314

Please sign in to comment.