Browse Source

Enable fast sync by default.

sync-multiple-blocks
CalDescent 3 years ago
parent
commit
904be3005f
  1. 4
      src/main/java/org/qortal/settings/Settings.java

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

@ -134,13 +134,13 @@ public class Settings {
private boolean allowConnectionsWithOlderPeerVersions = true; private boolean allowConnectionsWithOlderPeerVersions = true;
/** Whether to sync multiple blocks at once in normal operation */ /** Whether to sync multiple blocks at once in normal operation */
private boolean fastSyncEnabled = false; private boolean fastSyncEnabled = true;
/** Whether to sync multiple blocks at once when the peer has a different chain */ /** Whether to sync multiple blocks at once when the peer has a different chain */
private boolean fastSyncEnabledWhenResolvingFork = true; private boolean fastSyncEnabledWhenResolvingFork = true;
/** Maximum number of blocks to request at once */ /** Maximum number of blocks to request at once */
private int maxBlocksPerRequest = 100; private int maxBlocksPerRequest = 100;
/** Maximum number of blocks this node will serve in a single response */ /** Maximum number of blocks this node will serve in a single response */
private int maxBlocksPerResponse = 100; private int maxBlocksPerResponse = 200;
/** Maximum number of untrimmed blocks this node will serve in a single response */ /** Maximum number of untrimmed blocks this node will serve in a single response */
private int maxUntrimmedBlocksPerResponse = 10; private int maxUntrimmedBlocksPerResponse = 10;

Loading…
Cancel
Save