Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanBratanov committed Jan 10, 2025
1 parent fc18768 commit 526cb25
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ public class SyncConfig {
public static final boolean DEFAULT_MULTI_PEER_SYNC_ENABLED = true;
public static final boolean DEFAULT_RECONSTRUCT_HISTORIC_STATES_ENABLED = false;
public static final boolean DEFAULT_FETCH_ALL_HISTORIC_BLOCKS = true;
public static final int DEFAULT_FORWARD_SYNC_BATCH_SIZE = 25;

public static final int DEFAULT_HISTORICAL_SYNC_BATCH_SIZE = 50;
public static final int DEFAULT_FORWARD_SYNC_BATCH_SIZE = 25;
public static final int DEFAULT_FORWARD_SYNC_MAX_PENDING_BATCHES = 5;

public static final int DEFAULT_FORWARD_SYNC_MAX_BLOCKS_PER_MINUTE = 500;
public static final int DEFAULT_FORWARD_SYNC_MAX_BLOB_SIDECARS_PER_MINUTE = 1500;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
public class P2PConfig {

public static final int DEFAULT_PEER_RATE_LIMIT = 500;
public static final int DEFAULT_PEER_REQUEST_LIMIT = 100;

public static final boolean DEFAULT_PEER_ALL_TOPIC_FILTER_ENABLED = true;
public static final int DEFAULT_PEER_REQUEST_LIMIT = 50;
public static final int DEFAULT_P2P_TARGET_SUBNET_SUBSCRIBER_COUNT = 2;
public static final boolean DEFAULT_SUBSCRIBE_ALL_SUBNETS_ENABLED = false;
public static final boolean DEFAULT_GOSSIP_SCORING_ENABLED = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ The network interface(s) on which the node listens for P2P communication.
showDefaultValue = Visibility.ALWAYS,
description =
"Number of blocks/blobs being requested in a single batch to a single peer, while syncing historical data.\n"
+ "NOTE: the actual size for blobs batches will be `maxBlobsPerBlock` times the value of this parameter.",
+ "NOTE: the actual size for blobs being requested in a single batch will be up to `maxBlobsPerBlock` times the value of this parameter.",
hidden = true,
arity = "1")
private Integer historicalSyncBatchSize = SyncConfig.DEFAULT_HISTORICAL_SYNC_BATCH_SIZE;
Expand All @@ -239,7 +239,7 @@ The network interface(s) on which the node listens for P2P communication.
showDefaultValue = Visibility.ALWAYS,
description =
"Number of blocks/blobs being requested in a single batch to a single peer, while syncing.\n"
+ "NOTE: the actual size for blobs batches will be `maxBlobsPerBlock` times the value of this parameter.",
+ "NOTE: the actual size for blobs being requested in a single batch will be up to `maxBlobsPerBlock` times the value of this parameter.",
hidden = true,
arity = "1")
private Integer forwardSyncBatchSize = SyncConfig.DEFAULT_FORWARD_SYNC_BATCH_SIZE;
Expand Down Expand Up @@ -268,8 +268,7 @@ The network interface(s) on which the node listens for P2P communication.
names = {"--Xp2p-sync-blob-sidecars-rate-limit"},
paramLabel = "<NUMBER>",
showDefaultValue = Visibility.ALWAYS,
description =
"Number of blob sidecars being requested per minute to a single peer, while syncing.",
description = "Number of blobs being requested per minute to a single peer, while syncing.",
hidden = true,
arity = "1")
private Integer forwardSyncBlobSidecarsRateLimit =
Expand Down

0 comments on commit 526cb25

Please sign in to comment.