mirror of
https://github.com/Qortal/qortal.git
synced 2025-02-12 02:05:50 +00:00
Merge pull request #161 from crowetic/master
modifications to settings defaults, and start script defaults.
This commit is contained in:
commit
feb5564666
@ -68,8 +68,7 @@ public class Settings {
|
|||||||
"localhost", "127.0.0.1"
|
"localhost", "127.0.0.1"
|
||||||
};
|
};
|
||||||
private String[] uiRemoteServers = new String[] {
|
private String[] uiRemoteServers = new String[] {
|
||||||
"node1.qortal.org", "node2.qortal.org", "node3.qortal.org", "node4.qortal.org", "node5.qortal.org",
|
"none.exist.anymore"
|
||||||
"node6.qortal.org", "node7.qortal.org", "node8.qortal.org", "node9.qortal.org", "node10.qortal.org"
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// API-related
|
// API-related
|
||||||
@ -138,11 +137,11 @@ public class Settings {
|
|||||||
private long repositoryCheckpointInterval = 60 * 60 * 1000L; // 1 hour (ms) default
|
private long repositoryCheckpointInterval = 60 * 60 * 1000L; // 1 hour (ms) default
|
||||||
/** Whether to show a notification when we perform repository 'checkpoint'. */
|
/** Whether to show a notification when we perform repository 'checkpoint'. */
|
||||||
private boolean showCheckpointNotification = false;
|
private boolean showCheckpointNotification = false;
|
||||||
/* How many blocks to cache locally. Defaulted to 10, which covers a typical Synchronizer request + a few spare */
|
/* How many blocks to cache locally. Defaulted to 10, which covers a typical Synchronizer request + a few spare - increased to 100 */
|
||||||
private int blockCacheSize = 10;
|
private int blockCacheSize = 100;
|
||||||
|
|
||||||
/** Maximum number of transactions for the block minter to include in a block */
|
/** Maximum number of transactions for the block minter to include in a block */
|
||||||
private int maxTransactionsPerBlock = 50;
|
private int maxTransactionsPerBlock = 100;
|
||||||
|
|
||||||
/** How long to keep old, full, AT state data (ms). */
|
/** How long to keep old, full, AT state data (ms). */
|
||||||
private long atStatesMaxLifetime = 5 * 24 * 60 * 60 * 1000L; // milliseconds
|
private long atStatesMaxLifetime = 5 * 24 * 60 * 60 * 1000L; // milliseconds
|
||||||
@ -164,7 +163,7 @@ public class Settings {
|
|||||||
private boolean lite = false;
|
private boolean lite = false;
|
||||||
|
|
||||||
/** Whether we should prune old data to reduce database size
|
/** Whether we should prune old data to reduce database size
|
||||||
* This prevents the node from being able to serve older blocks */
|
* This prevents the node from being able to serve older blocks - No longer used */
|
||||||
private boolean topOnly = false;
|
private boolean topOnly = false;
|
||||||
/** The amount of recent blocks we should keep when pruning */
|
/** The amount of recent blocks we should keep when pruning */
|
||||||
private int pruneBlockLimit = 6000;
|
private int pruneBlockLimit = 6000;
|
||||||
@ -205,13 +204,13 @@ public class Settings {
|
|||||||
/** Minimum number of peers to allow block minting / synchronization. */
|
/** Minimum number of peers to allow block minting / synchronization. */
|
||||||
private int minBlockchainPeers = 3;
|
private int minBlockchainPeers = 3;
|
||||||
/** Target number of outbound connections to peers we should make. */
|
/** Target number of outbound connections to peers we should make. */
|
||||||
private int minOutboundPeers = 16;
|
private int minOutboundPeers = 32;
|
||||||
/** Maximum number of peer connections we allow. */
|
/** Maximum number of peer connections we allow. */
|
||||||
private int maxPeers = 40;
|
private int maxPeers = 60;
|
||||||
/** Number of slots to reserve for short-lived QDN data transfers */
|
/** Number of slots to reserve for short-lived QDN data transfers */
|
||||||
private int maxDataPeers = 4;
|
private int maxDataPeers = 5;
|
||||||
/** Maximum number of threads for network engine. */
|
/** Maximum number of threads for network engine. */
|
||||||
private int maxNetworkThreadPoolSize = 120;
|
private int maxNetworkThreadPoolSize = 620;
|
||||||
/** Maximum number of threads for network proof-of-work compute, used during handshaking. */
|
/** Maximum number of threads for network proof-of-work compute, used during handshaking. */
|
||||||
private int networkPoWComputePoolSize = 2;
|
private int networkPoWComputePoolSize = 2;
|
||||||
/** Maximum number of retry attempts if a peer fails to respond with the requested data */
|
/** Maximum number of retry attempts if a peer fails to respond with the requested data */
|
||||||
@ -269,7 +268,7 @@ public class Settings {
|
|||||||
/** Repository storage path. */
|
/** Repository storage path. */
|
||||||
private String repositoryPath = "db";
|
private String repositoryPath = "db";
|
||||||
/** Repository connection pool size. Needs to be a bit bigger than maxNetworkThreadPoolSize */
|
/** Repository connection pool size. Needs to be a bit bigger than maxNetworkThreadPoolSize */
|
||||||
private int repositoryConnectionPoolSize = 240;
|
private int repositoryConnectionPoolSize = 1920;
|
||||||
private List<String> fixedNetwork;
|
private List<String> fixedNetwork;
|
||||||
|
|
||||||
// Export/import
|
// Export/import
|
||||||
@ -370,7 +369,7 @@ public class Settings {
|
|||||||
/** Whether to allow public (decryptable) data to be stored */
|
/** Whether to allow public (decryptable) data to be stored */
|
||||||
private boolean publicDataEnabled = true;
|
private boolean publicDataEnabled = true;
|
||||||
/** Whether to allow private (non-decryptable) data to be stored */
|
/** Whether to allow private (non-decryptable) data to be stored */
|
||||||
private boolean privateDataEnabled = false;
|
private boolean privateDataEnabled = true;
|
||||||
|
|
||||||
/** Maximum total size of hosted data, in bytes. Unlimited if null */
|
/** Maximum total size of hosted data, in bytes. Unlimited if null */
|
||||||
private Long maxStorageCapacity = null;
|
private Long maxStorageCapacity = null;
|
||||||
|
2
start.sh
2
start.sh
@ -34,7 +34,7 @@ fi
|
|||||||
# Comment out for bigger systems, e.g. non-routers
|
# Comment out for bigger systems, e.g. non-routers
|
||||||
# or when API documentation is enabled
|
# or when API documentation is enabled
|
||||||
# Uncomment (remove '#' sign) line below if your system has less than 12GB of RAM for optimal RAM defaults
|
# Uncomment (remove '#' sign) line below if your system has less than 12GB of RAM for optimal RAM defaults
|
||||||
# JVM_MEMORY_ARGS="-Xss1256k -Xmx3128m"
|
JVM_MEMORY_ARGS="-Xss256m -XX:+UseSerialGC"
|
||||||
|
|
||||||
# Although java.net.preferIPv4Stack is supposed to be false
|
# Although java.net.preferIPv4Stack is supposed to be false
|
||||||
# by default in Java 11, on some platforms (e.g. FreeBSD 12),
|
# by default in Java 11, on some platforms (e.g. FreeBSD 12),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user