only do 2 retries (#6482)

Signed-off-by: stefan.pingel@consensys.net <stefan.pingel@consensys.net>
pull/6487/head
Stefan Pingel 10 months ago committed by GitHub
parent 7afe3a9ae3
commit 06406ce108
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/sync/backwardsync/BackwardSyncContext.java

@ -44,7 +44,7 @@ import org.slf4j.LoggerFactory;
public class BackwardSyncContext { public class BackwardSyncContext {
private static final Logger LOG = LoggerFactory.getLogger(BackwardSyncContext.class); private static final Logger LOG = LoggerFactory.getLogger(BackwardSyncContext.class);
public static final int BATCH_SIZE = 200; public static final int BATCH_SIZE = 200;
private static final int DEFAULT_MAX_RETRIES = 20; private static final int DEFAULT_MAX_RETRIES = 2;
private static final long MILLIS_DELAY_BETWEEN_PROGRESS_LOG = 10_000L; private static final long MILLIS_DELAY_BETWEEN_PROGRESS_LOG = 10_000L;
private static final long DEFAULT_MILLIS_BETWEEN_RETRIES = 5000; private static final long DEFAULT_MILLIS_BETWEEN_RETRIES = 5000;
private static final int DEFAULT_MAX_CHAIN_EVENT_ENTRIES = BadBlockManager.MAX_BAD_BLOCKS_SIZE; private static final int DEFAULT_MAX_CHAIN_EVENT_ENTRIES = BadBlockManager.MAX_BAD_BLOCKS_SIZE;

Loading…
Cancel
Save