From 2eca314de6cd9a3c13f28d6754b1199b654d36c6 Mon Sep 17 00:00:00 2001 From: Lukas Tassanyi Date: Fri, 22 Feb 2019 14:19:15 +0100 Subject: [PATCH] disable tangle size adjustment by default --- src/main/java/org/iota/ict/utils/properties/Properties.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/iota/ict/utils/properties/Properties.java b/src/main/java/org/iota/ict/utils/properties/Properties.java index 1f2c244..f69ea11 100644 --- a/src/main/java/org/iota/ict/utils/properties/Properties.java +++ b/src/main/java/org/iota/ict/utils/properties/Properties.java @@ -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"; @@ -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);