Browse Source

Added "lite" setting to designate the core as a lite node.

lite-node
CalDescent 3 years ago
parent
commit
a921db2cc6
  1. 6
      src/main/java/org/qortal/settings/Settings.java

6
src/main/java/org/qortal/settings/Settings.java

@ -143,6 +143,8 @@ public class Settings {
* This has a significant effect on execution time. */
private int onlineSignaturesTrimBatchSize = 100; // blocks
/** Lite nodes don't sync blocks, and instead request "derived data" from peers */
private boolean lite = false;
/** Whether we should prune old data to reduce database size
* This prevents the node from being able to serve older blocks */
@ -796,6 +798,10 @@ public class Settings {
return this.onlineSignaturesTrimBatchSize;
}
public boolean isLite() {
return this.lite;
}
public boolean isTopOnly() {
return this.topOnly;
}

Loading…
Cancel
Save