NC-1815 Rinkeby import can stall with too many fragments (#224)

Quick fix - up the retry limit to 20, the observed chunking size at the point of failure.
Danno Ferrin 6 years ago committed by GitHub
parent eebb2311cc
commit 6ccb06012e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      ethereum/eth/src/main/java/tech/pegasys/pantheon/ethereum/eth/sync/tasks/CompleteBlocksTask.java
  2. 2
      ethereum/eth/src/main/java/tech/pegasys/pantheon/ethereum/eth/sync/tasks/DownloadHeaderSequenceTask.java

@ -44,7 +44,7 @@ import org.apache.logging.log4j.Logger;
*/
public class CompleteBlocksTask<C> extends AbstractRetryingPeerTask<List<Block>> {
private static final Logger LOG = LogManager.getLogger();
private static final int DEFAULT_RETRIES = 3;
private static final int DEFAULT_RETRIES = 20;
private final EthContext ethContext;
private final ProtocolSchedule<C> protocolSchedule;

@ -47,7 +47,7 @@ import org.apache.logging.log4j.Logger;
*/
public class DownloadHeaderSequenceTask<C> extends AbstractRetryingPeerTask<List<BlockHeader>> {
private static final Logger LOG = LogManager.getLogger();
private static final int DEFAULT_RETRIES = 3;
private static final int DEFAULT_RETRIES = 20;
private final EthContext ethContext;
private final ProtocolContext<C> protocolContext;

Loading…
Cancel
Save