Browse Source

MAXIMUM_RETRIES increased from 1 to 3.

Now that we are spending a lot of time to carefully select a peer to sync with, it makes sense to retry a couple more times before giving up and starting the peer selection process all over again.
prioritize-peers
CalDescent 3 years ago
parent
commit
1e491dd8fb
  1. 2
      src/main/java/org/qortal/controller/Synchronizer.java

2
src/main/java/org/qortal/controller/Synchronizer.java

@ -56,7 +56,7 @@ public class Synchronizer {
private static final int MAXIMUM_REQUEST_SIZE = 200; // XXX move to Settings?
/** Number of retry attempts if a peer fails to respond with the requested data */
private static final int MAXIMUM_RETRIES = 1; // XXX move to Settings?
private static final int MAXIMUM_RETRIES = 3; // XXX move to Settings?
private static Synchronizer instance;

Loading…
Cancel
Save