mirror of
https://github.com/Qortal/qortal.git
synced 2025-04-23 11:27:51 +00:00
Added "lite" setting to designate the core as a lite node.
This commit is contained in:
parent
3d99f86630
commit
a921db2cc6
@ -143,6 +143,8 @@ public class Settings {
|
|||||||
* This has a significant effect on execution time. */
|
* This has a significant effect on execution time. */
|
||||||
private int onlineSignaturesTrimBatchSize = 100; // blocks
|
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
|
/** 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 */
|
||||||
@ -796,6 +798,10 @@ public class Settings {
|
|||||||
return this.onlineSignaturesTrimBatchSize;
|
return this.onlineSignaturesTrimBatchSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isLite() {
|
||||||
|
return this.lite;
|
||||||
|
}
|
||||||
|
|
||||||
public boolean isTopOnly() {
|
public boolean isTopOnly() {
|
||||||
return this.topOnly;
|
return this.topOnly;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user