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

This commit is contained in:
CalDescent 2022-03-20 18:12:50 +00:00
parent 3d99f86630
commit a921db2cc6

View File

@ -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;
}