forked from Qortal/qortal
MAXIMUM_RETRIES reduced from 3 to 1. It will now only retry once, which should save around 6 seconds of wasted synchronization time if a node is unable to respond with the requested block (due to a re-org, etc).
This commit is contained in:
parent
3e0ff7f43f
commit
365662a2af
@ -57,7 +57,7 @@ public class Synchronizer {
|
|||||||
private static final int MAXIMUM_REQUEST_SIZE = 200; // XXX move to Settings?
|
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 */
|
/** Number of retry attempts if a peer fails to respond with the requested data */
|
||||||
private static final int MAXIMUM_RETRIES = 3; // XXX move to Settings?
|
private static final int MAXIMUM_RETRIES = 1; // XXX move to Settings?
|
||||||
|
|
||||||
/* Minimum peer version that supports syncing multiple blocks at once via GetBlocksMessage */
|
/* Minimum peer version that supports syncing multiple blocks at once via GetBlocksMessage */
|
||||||
private static final long PEER_VERSION_150 = 0x0100050000L;
|
private static final long PEER_VERSION_150 = 0x0100050000L;
|
||||||
|
Loading…
Reference in New Issue
Block a user