mirror of
https://github.com/Qortal/qortal.git
synced 2025-05-13 21:27:50 +00:00
turn pruning interval into setting
This commit is contained in:
parent
3e0829260b
commit
ea06a7fe91
@ -106,6 +106,7 @@ public class RNSNetwork {
|
||||
static final String defaultConfigPath = Settings.getInstance().isTestNet() ? RNSCommon.defaultRNSConfigPathTestnet: RNSCommon.defaultRNSConfigPath;
|
||||
private final int MAX_PEERS = Settings.getInstance().getReticulumMaxPeers();
|
||||
private final int MIN_DESIRED_PEERS = Settings.getInstance().getReticulumMinDesiredPeers();
|
||||
private final long PRUNE_INTERVAL = Settings.getInstance().getReticulumPruneInterval();
|
||||
Identity serverIdentity;
|
||||
public Destination baseDestination;
|
||||
private volatile boolean isShuttingDown = false;
|
||||
@ -136,10 +137,6 @@ public class RNSNetwork {
|
||||
* How long between informational broadcasts to all ACTIVE peers, in milliseconds.
|
||||
*/
|
||||
private static final long BROADCAST_INTERVAL = 30 * 1000L; // ms
|
||||
/**
|
||||
* How log between pruning of peers
|
||||
*/
|
||||
private static final long PRUNE_INTERVAL = 2 * 60 * 1000L; // ms
|
||||
/**
|
||||
* Link low-level ping interval and timeout
|
||||
*/
|
||||
|
@ -622,6 +622,8 @@ public class Settings {
|
||||
private int reticulumMinDesiredPeers = 3;
|
||||
/** Maximum number of task executor network threads */
|
||||
private int reticulumMaxNetworkThreadPoolSize = 89;
|
||||
/** How long [ms] between pruning of peers */
|
||||
private long reticulumPruneInterval = 2 * 60 * 1000L; // ms;
|
||||
|
||||
// Constructors
|
||||
|
||||
@ -1390,7 +1392,11 @@ public class Settings {
|
||||
|
||||
public int getReticulumMaxNetworkThreadPoolSize() {
|
||||
return this.reticulumMaxNetworkThreadPoolSize;
|
||||
}
|
||||
}
|
||||
|
||||
public long getReticulumPruneInterval() {
|
||||
return this.reticulumPruneInterval;
|
||||
}
|
||||
|
||||
public int getBuildArbitraryResourcesBatchSize() {
|
||||
return buildArbitraryResourcesBatchSize;
|
||||
|
Loading…
x
Reference in New Issue
Block a user