3
0
mirror of https://github.com/Qortal/qortal.git synced 2025-02-16 04:05:48 +00:00

Enable fast sync by default.

This commit is contained in:
CalDescent 2021-06-12 13:07:25 +01:00
parent 95eaf4c887
commit 904be3005f

View File

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