Skip to content

Commit 12ca872

Browse files
authored
fix: churn adjustments (ethereum#614)
1 parent 5460f6f commit 12ca872

File tree

7 files changed

+28
-12
lines changed

7 files changed

+28
-12
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,11 @@ network_params:
489489
# Max churn rate for the network introduced by
490490
# EIP-7514 https:#eips.ethereum.org/EIPS/eip-7514
491491
# Defaults to 8
492-
max_churn: 8
492+
max_per_epoch_activation_churn_limit: 8
493+
494+
# Churn limit quotient for the network
495+
# Defaults to 65536
496+
churn_limit_quotient: 65536
493497

494498
# Ejection balance
495499
# Defaults to 16ETH

network_params.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ network_params:
6565
very lucky have athlete"
6666
preregistered_validator_count: 0
6767
genesis_delay: 20
68-
max_churn: 8
68+
max_per_epoch_activation_churn_limit: 8
69+
churn_limit_quotient: 65536
6970
ejection_balance: 16000000000
7071
eth1_follow_distance: 2048
7172
min_validator_withdrawability_delay: 256

src/package_io/constants.star

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ EIP7594_FORK_VERSION = "0x70000038"
8888

8989
ETHEREUM_GENESIS_GENERATOR = struct(
9090
capella_genesis="ethpandaops/ethereum-genesis-generator:2.0.12", # Deprecated (no support for minimal config)
91-
deneb_genesis="ethpandaops/ethereum-genesis-generator:3.1.4", # Default
91+
deneb_genesis="ethpandaops/ethereum-genesis-generator:3.1.5", # Default
9292
verkle_support_genesis="ethpandaops/ethereum-genesis-generator:3.0.0-rc.19", # soon to be deneb genesis, waiting for rebase
9393
verkle_genesis="ethpandaops/ethereum-genesis-generator:verkle-gen-v1.0.0",
9494
)

src/package_io/input_parser.star

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,10 @@ def input_parser(plan, input_args):
262262
],
263263
seconds_per_slot=result["network_params"]["seconds_per_slot"],
264264
genesis_delay=result["network_params"]["genesis_delay"],
265-
max_churn=result["network_params"]["max_churn"],
265+
max_per_epoch_activation_churn_limit=result["network_params"][
266+
"max_per_epoch_activation_churn_limit"
267+
],
268+
churn_limit_quotient=result["network_params"]["churn_limit_quotient"],
266269
ejection_balance=result["network_params"]["ejection_balance"],
267270
eth1_follow_distance=result["network_params"]["eth1_follow_distance"],
268271
deneb_fork_epoch=result["network_params"]["deneb_fork_epoch"],
@@ -689,7 +692,8 @@ def default_network_params():
689692
"preregistered_validator_keys_mnemonic": "giant issue aisle success illegal bike spike question tent bar rely arctic volcano long crawl hungry vocal artwork sniff fantasy very lucky have athlete",
690693
"preregistered_validator_count": 0,
691694
"genesis_delay": 20,
692-
"max_churn": 8,
695+
"max_per_epoch_activation_churn_limit": 8,
696+
"churn_limit_quotient": 65536,
693697
"ejection_balance": 16000000000,
694698
"eth1_follow_distance": 2048,
695699
"min_validator_withdrawability_delay": 256,
@@ -713,7 +717,8 @@ def default_minimal_network_params():
713717
"preregistered_validator_keys_mnemonic": "giant issue aisle success illegal bike spike question tent bar rely arctic volcano long crawl hungry vocal artwork sniff fantasy very lucky have athlete",
714718
"preregistered_validator_count": 0,
715719
"genesis_delay": 20,
716-
"max_churn": 4,
720+
"max_per_epoch_activation_churn_limit": 4,
721+
"churn_limit_quotient": 32,
717722
"ejection_balance": 16000000000,
718723
"eth1_follow_distance": 16,
719724
"min_validator_withdrawability_delay": 256,

src/participant_network.star

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ def launch_participant_network(
9696
network_params.preregistered_validator_keys_mnemonic,
9797
total_number_of_validator_keys,
9898
network_params.genesis_delay,
99-
network_params.max_churn,
99+
network_params.max_per_epoch_activation_churn_limit,
100+
network_params.churn_limit_quotient,
100101
network_params.ejection_balance,
101102
network_params.eth1_follow_distance,
102103
network_params.deneb_fork_epoch,

src/prelaunch_data_generator/el_cl_genesis/el_cl_genesis_generator.star

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ def generate_el_cl_genesis_data(
2020
preregistered_validator_keys_mnemonic,
2121
total_num_validator_keys_to_preregister,
2222
genesis_delay,
23-
max_churn,
23+
max_per_epoch_activation_churn_limit,
24+
churn_limit_quotient,
2425
ejection_balance,
2526
eth1_follow_distance,
2627
deneb_fork_epoch,
@@ -46,7 +47,8 @@ def generate_el_cl_genesis_data(
4647
preregistered_validator_keys_mnemonic,
4748
total_num_validator_keys_to_preregister,
4849
genesis_delay,
49-
max_churn,
50+
max_per_epoch_activation_churn_limit,
51+
churn_limit_quotient,
5052
ejection_balance,
5153
eth1_follow_distance,
5254
deneb_fork_epoch,
@@ -128,7 +130,8 @@ def new_env_file_for_el_cl_genesis_data(
128130
preregistered_validator_keys_mnemonic,
129131
total_num_validator_keys_to_preregister,
130132
genesis_delay,
131-
max_churn,
133+
max_per_epoch_activation_churn_limit,
134+
churn_limit_quotient,
132135
ejection_balance,
133136
eth1_follow_distance,
134137
deneb_fork_epoch,
@@ -148,7 +151,8 @@ def new_env_file_for_el_cl_genesis_data(
148151
"PreregisteredValidatorKeysMnemonic": preregistered_validator_keys_mnemonic,
149152
"NumValidatorKeysToPreregister": total_num_validator_keys_to_preregister,
150153
"GenesisDelay": genesis_delay,
151-
"MaxChurn": max_churn,
154+
"MaxPerEpochActivationChurnLimit": max_per_epoch_activation_churn_limit,
155+
"ChurnLimitQuotient": churn_limit_quotient,
152156
"EjectionBalance": ejection_balance,
153157
"Eth1FollowDistance": eth1_follow_distance,
154158
"DenebForkEpoch": deneb_fork_epoch,

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ export WITHDRAWAL_TYPE="0x00"
2020
export WITHDRAWAL_ADDRESS=0xf97e180c050e5Ab072211Ad2C213Eb5AEE4DF134
2121
export GENESIS_TIMESTAMP={{ .UnixTimestamp }}
2222
export GENESIS_DELAY={{ .GenesisDelay }}
23-
export MAX_CHURN={{ .MaxChurn }}
23+
export MAX_PER_EPOCH_ACTIVATION_CHURN_LIMIT={{ .MaxPerEpochActivationChurnLimit }}
24+
export CHURN_LIMIT_QUOTIENT={{ .ChurnLimitQuotient }}
2425
export EJECTION_BALANCE={{ .EjectionBalance }}
2526
export ETH1_FOLLOW_DISTANCE={{ .Eth1FollowDistance }}
2627
export SHADOW_FORK_FILE={{ .ShadowForkFile }}

0 commit comments

Comments
 (0)