Skip to content

Commit 56a3197

Browse files
authored
feat: add gossip limit as a configuratable flag (ethereum#856)
1 parent 3b51e5e commit 56a3197

File tree

9 files changed

+38
-116
lines changed

9 files changed

+38
-116
lines changed

.github/tests/peerdas-deneb.yaml.norun

Lines changed: 0 additions & 69 deletions
This file was deleted.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ participants:
2828
cl_extra_params: [--persistNetworkIdentity]
2929
network_params:
3030
electra_fork_epoch: 1
31-
eip7594_fork_epoch: 1
32-
eip7594_fork_version: "0x60000038"
31+
fulu_fork_epoch: 2
3332
preset: minimal
3433
snooper_enabled: true
3534
global_log_level: debug

README.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ network_params:
534534
# Defaults to 256 epoch ~27 hours
535535
shard_committee_period: 256
536536

537-
# The epoch at which the deneb/electra/eip7594(peerdas) forks are set to occur. Note: PeerDAS and Electra clients are currently
537+
# The epoch at which the deneb/electra/fulu forks are set to occur. Note: PeerDAS and Electra clients are currently
538538
# working on forks. So set either one of the below forks.
539539
# Altair fork epoch
540540
# Defaults to 0
@@ -560,12 +560,6 @@ network_params:
560560
# Defaults to 100000001
561561
fulu_fork_epoch: 100000001
562562

563-
# Eip7594 fork epoch
564-
# Defaults to 100000002
565-
eip7594_fork_epoch: 100000002
566-
# The fork version to set if the eip7594 fork is active
567-
eip7594_fork_version: "0x60000038"
568-
569563

570564
# Network sync base url for syncing public networks from a custom snapshot (mostly useful for shadowforks)
571565
# Defaults to "https://snapshots.ethpandaops.io/"
@@ -586,10 +580,10 @@ network_params:
586580
# Target number of blobs per block for Electra fork
587581
target_blobs_per_block_electra: 6
588582

589-
# Maximum number of blobs per block for EIP7594 fork
590-
max_blobs_per_block_eip7594: 12
591-
# Target number of blobs per block for EIP7594 fork
592-
target_blobs_per_block_eip7594: 9
583+
# Maximum number of blobs per block for Fulu fork
584+
max_blobs_per_block_fulu: 12
585+
# Target number of blobs per block for Fulu fork
586+
target_blobs_per_block_fulu: 9
593587

594588
# Preset for the network
595589
# Default: "mainnet"
@@ -628,6 +622,13 @@ network_params:
628622
# prefunded_accounts: '{"0x25941dC771bB64514Fc8abBce970307Fb9d477e9": {"balance": "10ETH"}, "0x4107be99052d895e3ee461C685b042Aa975ab5c0": {"balance": "1ETH"}}'
629623
prefunded_accounts: {}
630624

625+
# Maximum size of gossip messages in bytes
626+
# 10 * 2**20 (= 10485760, 10 MiB)
627+
# Defaults to 10485760 (10MB)
628+
gossip_max_size: 10485760
629+
630+
631+
631632
# Global parameters for the network
632633

633634
# By default includes

network_params.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,16 +88,14 @@ network_params:
8888
deneb_fork_epoch: 0
8989
electra_fork_epoch: 100000000
9090
fulu_fork_epoch: 100000001
91-
eip7594_fork_epoch: 100000002
92-
eip7594_fork_version: "0x60000038"
9391
network_sync_base_url: https://snapshots.ethpandaops.io/
9492
data_column_sidecar_subnet_count: 128
9593
samples_per_slot: 8
9694
custody_requirement: 4
9795
max_blobs_per_block_electra: 9
9896
target_blobs_per_block_electra: 6
99-
max_blobs_per_block_eip7594: 12
100-
target_blobs_per_block_eip7594: 9
97+
max_blobs_per_block_fulu: 12
98+
target_blobs_per_block_fulu: 9
10199
additional_preloaded_contracts: {}
102100
devnet_repo: ethpandaops
103101
prefunded_accounts: {}

src/package_io/constants.star

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,6 @@ ELECTRA_FORK_VERSION = "0x60000038"
111111
ELECTRA_FORK_EPOCH = 100000000
112112
FULU_FORK_VERSION = "0x70000038"
113113
FULU_FORK_EPOCH = 100000001
114-
EIP7594_FORK_VERSION = "0x80000038"
115-
EIP7594_FORK_EPOCH = 100000002
116114

117115
MAX_LABEL_LENGTH = 63
118116

@@ -124,7 +122,7 @@ CONTAINER_REGISTRY = struct(
124122

125123

126124
ETHEREUM_GENESIS_GENERATOR = struct(
127-
default_genesis_generator_image="ethpandaops/ethereum-genesis-generator:3.4.4", # Default
125+
default_genesis_generator_image="ethpandaops/ethereum-genesis-generator:3.4.7", # Default
128126
verkle_genesis="ethpandaops/ethereum-genesis-generator:verkle-gen-v1.0.0",
129127
)
130128

src/package_io/input_parser.star

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -325,8 +325,6 @@ def input_parser(plan, input_args):
325325
deneb_fork_epoch=result["network_params"]["deneb_fork_epoch"],
326326
electra_fork_epoch=result["network_params"]["electra_fork_epoch"],
327327
fulu_fork_epoch=result["network_params"]["fulu_fork_epoch"],
328-
eip7594_fork_epoch=result["network_params"]["eip7594_fork_epoch"],
329-
eip7594_fork_version=result["network_params"]["eip7594_fork_version"],
330328
network=result["network_params"]["network"],
331329
min_validator_withdrawability_delay=result["network_params"][
332330
"min_validator_withdrawability_delay"
@@ -344,18 +342,19 @@ def input_parser(plan, input_args):
344342
target_blobs_per_block_electra=result["network_params"][
345343
"target_blobs_per_block_electra"
346344
],
347-
max_blobs_per_block_eip7594=result["network_params"][
348-
"max_blobs_per_block_eip7594"
345+
max_blobs_per_block_fulu=result["network_params"][
346+
"max_blobs_per_block_fulu"
349347
],
350-
target_blobs_per_block_eip7594=result["network_params"][
351-
"target_blobs_per_block_eip7594"
348+
target_blobs_per_block_fulu=result["network_params"][
349+
"target_blobs_per_block_fulu"
352350
],
353351
preset=result["network_params"]["preset"],
354352
additional_preloaded_contracts=result["network_params"][
355353
"additional_preloaded_contracts"
356354
],
357355
devnet_repo=result["network_params"]["devnet_repo"],
358356
prefunded_accounts=result["network_params"]["prefunded_accounts"],
357+
gossip_max_size=result["network_params"]["gossip_max_size"],
359358
),
360359
mev_params=struct(
361360
mev_relay_image=result["mev_params"]["mev_relay_image"],
@@ -896,20 +895,19 @@ def default_network_params():
896895
"deneb_fork_epoch": 0,
897896
"electra_fork_epoch": constants.ELECTRA_FORK_EPOCH,
898897
"fulu_fork_epoch": constants.FULU_FORK_EPOCH,
899-
"eip7594_fork_epoch": constants.EIP7594_FORK_EPOCH,
900-
"eip7594_fork_version": "0x60000038",
901898
"network_sync_base_url": "https://snapshots.ethpandaops.io/",
902899
"data_column_sidecar_subnet_count": 128,
903900
"samples_per_slot": 8,
904901
"custody_requirement": 4,
905902
"max_blobs_per_block_electra": 9,
906903
"target_blobs_per_block_electra": 6,
907-
"max_blobs_per_block_eip7594": 12,
908-
"target_blobs_per_block_eip7594": 9,
904+
"max_blobs_per_block_fulu": 12,
905+
"target_blobs_per_block_fulu": 9,
909906
"preset": "mainnet",
910907
"additional_preloaded_contracts": {},
911908
"devnet_repo": "ethpandaops",
912909
"prefunded_accounts": {},
910+
"gossip_max_size": 10485760,
913911
}
914912

915913

@@ -936,20 +934,19 @@ def default_minimal_network_params():
936934
"deneb_fork_epoch": 0,
937935
"electra_fork_epoch": constants.ELECTRA_FORK_EPOCH,
938936
"fulu_fork_epoch": constants.FULU_FORK_EPOCH,
939-
"eip7594_fork_epoch": constants.EIP7594_FORK_EPOCH,
940-
"eip7594_fork_version": "0x60000038",
941937
"network_sync_base_url": "https://snapshots.ethpandaops.io/",
942938
"data_column_sidecar_subnet_count": 128,
943939
"samples_per_slot": 8,
944940
"custody_requirement": 4,
945941
"max_blobs_per_block_electra": 9,
946942
"target_blobs_per_block_electra": 6,
947-
"max_blobs_per_block_eip7594": 12,
948-
"target_blobs_per_block_eip7594": 9,
943+
"max_blobs_per_block_fulu": 12,
944+
"target_blobs_per_block_fulu": 9,
949945
"preset": "minimal",
950946
"additional_preloaded_contracts": {},
951947
"devnet_repo": "ethpandaops",
952948
"prefunded_accounts": {},
949+
"gossip_max_size": 10485760,
953950
}
954951

955952

@@ -1096,7 +1093,7 @@ def get_default_mev_params(mev_type, preset):
10961093
mev_boost_image = constants.DEFAULT_COMMIT_BOOST_MEV_BOOST_IMAGE
10971094
mev_builder_cl_image = DEFAULT_CL_IMAGES[constants.CL_TYPE.lighthouse]
10981095
mev_builder_extra_data = (
1099-
"0x436f6d6d69742d426f6f737420f09f93bb" # Commit-Boost 📻
1096+
"0x436F6D6D69742D426F6F737420F09F93BB" # Commit-Boost 📻
11001097
)
11011098

11021099
return {

src/package_io/sanity_check.star

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,20 +159,19 @@ SUBCATEGORY_PARAMS = {
159159
"deneb_fork_epoch",
160160
"electra_fork_epoch",
161161
"fulu_fork_epoch",
162-
"eip7594_fork_epoch",
163-
"eip7594_fork_version",
164162
"network_sync_base_url",
165163
"data_column_sidecar_subnet_count",
166164
"samples_per_slot",
167165
"custody_requirement",
168166
"max_blobs_per_block_electra",
169167
"target_blobs_per_block_electra",
170-
"max_blobs_per_block_eip7594",
171-
"target_blobs_per_block_eip7594",
168+
"max_blobs_per_block_fulu",
169+
"target_blobs_per_block_fulu",
172170
"preset",
173171
"additional_preloaded_contracts",
174172
"devnet_repo",
175173
"prefunded_accounts",
174+
"gossip_max_size",
176175
],
177176
"blockscout_params": [
178177
"image",

src/prelaunch_data_generator/el_cl_genesis/el_cl_genesis_generator.star

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,6 @@ def new_env_file_for_el_cl_genesis_data(
113113
"DenebForkEpoch": network_params.deneb_fork_epoch,
114114
"ElectraForkEpoch": network_params.electra_fork_epoch,
115115
"FuluForkEpoch": network_params.fulu_fork_epoch,
116-
"EIP7594ForkEpoch": network_params.eip7594_fork_epoch,
117-
"EIP7594ForkVersion": network_params.eip7594_fork_version,
118116
"GenesisForkVersion": constants.GENESIS_FORK_VERSION,
119117
"AltairForkVersion": constants.ALTAIR_FORK_VERSION,
120118
"BellatrixForkVersion": constants.BELLATRIX_FORK_VERSION,
@@ -130,11 +128,12 @@ def new_env_file_for_el_cl_genesis_data(
130128
"CustodyRequirement": network_params.custody_requirement,
131129
"MaxBlobsPerBlockElectra": network_params.max_blobs_per_block_electra,
132130
"TargetBlobsPerBlockElectra": network_params.target_blobs_per_block_electra,
133-
"MaxBlobsPerBlockEIP7594": network_params.max_blobs_per_block_eip7594,
134-
"TargetBlobsPerBlockEIP7594": network_params.target_blobs_per_block_eip7594,
131+
"MaxBlobsPerBlockFulu": network_params.max_blobs_per_block_fulu,
132+
"TargetBlobsPerBlockFulu": network_params.target_blobs_per_block_fulu,
135133
"Preset": network_params.preset,
136134
"AdditionalPreloadedContracts": json.encode(
137135
network_params.additional_preloaded_contracts
138136
),
139137
"PrefundedAccounts": json.encode(network_params.prefunded_accounts),
138+
"GossipMaxSize": network_params.gossip_max_size,
140139
}

static_files/genesis-generation-config/el-cl/values.env.tmpl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ export ELECTRA_FORK_VERSION="{{ .ElectraForkVersion }}"
1919
export ELECTRA_FORK_EPOCH="{{ .ElectraForkEpoch }}"
2020
export FULU_FORK_VERSION="{{ .FuluForkVersion }}"
2121
export FULU_FORK_EPOCH="{{ .FuluForkEpoch }}"
22-
export EIP7594_FORK_EPOCH="{{ .EIP7594ForkEpoch }}"
23-
export EIP7594_FORK_VERSION="{{ .EIP7594ForkVersion }}"
2422
export WITHDRAWAL_TYPE="0x00"
2523
export WITHDRAWAL_ADDRESS=0xf97e180c050e5Ab072211Ad2C213Eb5AEE4DF134
2624
export GENESIS_TIMESTAMP={{ .UnixTimestamp }}
@@ -38,7 +36,9 @@ export SAMPLES_PER_SLOT={{ .SamplesPerSlot }}
3836
export CUSTODY_REQUIREMENT={{ .CustodyRequirement }}
3937
export MAX_BLOBS_PER_BLOCK_ELECTRA={{ .MaxBlobsPerBlockElectra }}
4038
export TARGET_BLOBS_PER_BLOCK_ELECTRA={{ .TargetBlobsPerBlockElectra }}
41-
export MAX_BLOBS_PER_BLOCK_EIP7594={{ .MaxBlobsPerBlockEIP7594 }}
42-
export TARGET_BLOBS_PER_BLOCK_EIP7594={{ .TargetBlobsPerBlockEIP7594 }}
39+
export MAX_BLOBS_PER_BLOCK_FULU={{ .MaxBlobsPerBlockFulu }}
40+
export TARGET_BLOBS_PER_BLOCK_FULU={{ .TargetBlobsPerBlockFulu }}
4341
export ADDITIONAL_PRELOADED_CONTRACTS={{ .AdditionalPreloadedContracts }}
4442
export EL_PREMINE_ADDRS={{ .PrefundedAccounts }}
43+
export GOSSIP_MAX_SIZE={{ .GossipMaxSize }}
44+
export MAX_CHUNK_SIZE={{ .GossipMaxSize }}

0 commit comments

Comments
 (0)