Skip to content

feat: add genesis_gaslimit param configuration #726

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,9 @@ network_params:
# How long you want the network to wait before starting up
genesis_delay: 20

# The gas limit of the network set at genesis
genesis_gas_limit: 30000000

# Max churn rate for the network introduced by
# EIP-7514 https://eips.ethereum.org/EIPS/eip-7514
# Defaults to 8
Expand Down
1 change: 1 addition & 0 deletions network_params.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ network_params:
very lucky have athlete"
preregistered_validator_count: 0
genesis_delay: 20
genesis_gas_limit: 30000000
max_per_epoch_activation_churn_limit: 8
churn_limit_quotient: 65536
ejection_balance: 16000000000
Expand Down
3 changes: 3 additions & 0 deletions src/package_io/input_parser.star
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ def input_parser(plan, input_args):
],
seconds_per_slot=result["network_params"]["seconds_per_slot"],
genesis_delay=result["network_params"]["genesis_delay"],
genesis_gas_limit=result["network_params"]["genesis_gas_limit"],
max_per_epoch_activation_churn_limit=result["network_params"][
"max_per_epoch_activation_churn_limit"
],
Expand Down Expand Up @@ -781,6 +782,7 @@ def default_network_params():
"preregistered_validator_keys_mnemonic": constants.DEFAULT_MNEMONIC,
"preregistered_validator_count": 0,
"genesis_delay": 20,
"genesis_gas_limit": 30000000,
"max_per_epoch_activation_churn_limit": 8,
"churn_limit_quotient": 65536,
"ejection_balance": 16000000000,
Expand Down Expand Up @@ -813,6 +815,7 @@ def default_minimal_network_params():
"preregistered_validator_keys_mnemonic": constants.DEFAULT_MNEMONIC,
"preregistered_validator_count": 0,
"genesis_delay": 20,
"genesis_gas_limit": 30000000,
"max_per_epoch_activation_churn_limit": 4,
"churn_limit_quotient": 32,
"ejection_balance": 16000000000,
Expand Down
1 change: 1 addition & 0 deletions src/package_io/sanity_check.star
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ SUBCATEGORY_PARAMS = {
"preregistered_validator_keys_mnemonic",
"preregistered_validator_count",
"genesis_delay",
"genesis_gas_limit",
"max_per_epoch_activation_churn_limit",
"churn_limit_quotient",
"ejection_balance",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ def new_env_file_for_el_cl_genesis_data(
"PreregisteredValidatorKeysMnemonic": network_params.preregistered_validator_keys_mnemonic,
"NumValidatorKeysToPreregister": total_num_validator_keys_to_preregister,
"GenesisDelay": network_params.genesis_delay,
"GenesisGasLimit": network_params.genesis_gas_limit,
"MaxPerEpochActivationChurnLimit": network_params.max_per_epoch_activation_churn_limit,
"ChurnLimitQuotient": network_params.churn_limit_quotient,
"EjectionBalance": network_params.ejection_balance,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export WITHDRAWAL_TYPE="0x00"
export WITHDRAWAL_ADDRESS=0xf97e180c050e5Ab072211Ad2C213Eb5AEE4DF134
export GENESIS_TIMESTAMP={{ .UnixTimestamp }}
export GENESIS_DELAY={{ .GenesisDelay }}
export GENESIS_GASLIMIT={{ .GenesisGasLimit }}
export MAX_PER_EPOCH_ACTIVATION_CHURN_LIMIT={{ .MaxPerEpochActivationChurnLimit }}
export CHURN_LIMIT_QUOTIENT={{ .ChurnLimitQuotient }}
export EJECTION_BALANCE={{ .EjectionBalance }}
Expand Down