@ -16,7 +16,6 @@ import static com.google.common.base.Preconditions.checkArgument;
import tech.pegasys.pantheon.util.uint.UInt256 ;
import java.time.Duration ;
import java.util.Iterator ;
import java.util.concurrent.TimeUnit ;
@ -30,7 +29,6 @@ public class SynchronizerConfiguration {
private static final int DEFAULT_PIVOT_DISTANCE_FROM_HEAD = 50 ;
private static final float DEFAULT_FULL_VALIDATION_RATE = . 1f ;
private static final int DEFAULT_FAST_SYNC_MINIMUM_PEERS = 5 ;
private static final Duration DEFAULT_FAST_SYNC_MAXIMUM_PEER_WAIT_TIME = Duration . ofSeconds ( 0 ) ;
private static final int DEFAULT_WORLD_STATE_HASH_COUNT_PER_REQUEST = 384 ;
private static final int DEFAULT_WORLD_STATE_REQUEST_PARALLELISM = 10 ;
private static final int DEFAULT_WORLD_STATE_MAX_REQUESTS_WITHOUT_PROGRESS = 1000 ;
@ -41,7 +39,6 @@ public class SynchronizerConfiguration {
private final int fastSyncPivotDistance ;
private final float fastSyncFullValidationRate ;
private final int fastSyncMinimumPeerCount ;
private final Duration fastSyncMaximumPeerWaitTime ;
private final int worldStateHashCountPerRequest ;
private final int worldStateRequestParallelism ;
private final int worldStateMaxRequestsWithoutProgress ;
@ -69,7 +66,6 @@ public class SynchronizerConfiguration {
final int fastSyncPivotDistance ,
final float fastSyncFullValidationRate ,
final int fastSyncMinimumPeerCount ,
final Duration fastSyncMaximumPeerWaitTime ,
final int worldStateHashCountPerRequest ,
final int worldStateRequestParallelism ,
final int worldStateMaxRequestsWithoutProgress ,
@ -89,7 +85,6 @@ public class SynchronizerConfiguration {
this . fastSyncPivotDistance = fastSyncPivotDistance ;
this . fastSyncFullValidationRate = fastSyncFullValidationRate ;
this . fastSyncMinimumPeerCount = fastSyncMinimumPeerCount ;
this . fastSyncMaximumPeerWaitTime = fastSyncMaximumPeerWaitTime ;
this . worldStateHashCountPerRequest = worldStateHashCountPerRequest ;
this . worldStateRequestParallelism = worldStateRequestParallelism ;
this . worldStateMaxRequestsWithoutProgress = worldStateMaxRequestsWithoutProgress ;
@ -192,10 +187,6 @@ public class SynchronizerConfiguration {
return fastSyncMinimumPeerCount ;
}
public Duration getFastSyncMaximumPeerWaitTime ( ) {
return fastSyncMaximumPeerWaitTime ;
}
public int getWorldStateHashCountPerRequest ( ) {
return worldStateHashCountPerRequest ;
}
@ -219,7 +210,6 @@ public class SynchronizerConfiguration {
public static class Builder {
private SyncMode syncMode = SyncMode . FULL ;
private int fastSyncMinimumPeerCount = DEFAULT_FAST_SYNC_MINIMUM_PEERS ;
private Duration fastSyncMaximumPeerWaitTime = DEFAULT_FAST_SYNC_MAXIMUM_PEER_WAIT_TIME ;
private int maxTrailingPeers = Integer . MAX_VALUE ;
@CommandLine.Option (
@ -465,11 +455,6 @@ public class SynchronizerConfiguration {
return this ;
}
public Builder fastSyncMaximumPeerWaitTime ( final Duration fastSyncMaximumPeerWaitTime ) {
this . fastSyncMaximumPeerWaitTime = fastSyncMaximumPeerWaitTime ;
return this ;
}
public Builder worldStateMinMillisBeforeStalling ( final long worldStateMinMillisBeforeStalling ) {
this . worldStateMinMillisBeforeStalling = worldStateMinMillisBeforeStalling ;
return this ;
@ -485,7 +470,6 @@ public class SynchronizerConfiguration {
fastSyncPivotDistance ,
fastSyncFullValidationRate ,
fastSyncMinimumPeerCount ,
fastSyncMaximumPeerWaitTime ,
worldStateHashCountPerRequest ,
worldStateRequestParallelism ,
worldStateMaxRequestsWithoutProgress ,