Commit fbe6c004 authored by Barnabas Busa's avatar Barnabas Busa Committed by GitHub

feat: add support for electra (#176)

Co-authored-by: default avatarGyanendra Mishra <anomaly.the@gmail.com>
parent 5e5b8687
...@@ -142,7 +142,32 @@ To configure the package behaviour, you can modify your `network_params.json` fi ...@@ -142,7 +142,32 @@ To configure the package behaviour, you can modify your `network_params.json` fi
// "https://0xdeadbeefcafc@relay.example.com", // "https://0xdeadbeefcafc@relay.example.com",
// "https://0xdeadbeefcafd@relay.example.com" // "https://0xdeadbeefcafd@relay.example.com"
// ] // ]
"builder_network_params": null "builder_network_params": null,
// Resource management for el/beacon/validator containers
// CPU is milicores
// RAM is in MB
// Defaults are set per client
"el_min_cpu": "",
"el_max_cpu": "",
"el_min_mem": "",
"el_max_mem": "",
"bn_min_cpu": "",
"bn_max_cpu": "",
"bn_min_mem": "",
"bn_max_mem": "",
"v_min_cpu": "",
"v_max_cpu": "",
"v_min_mem": "",
"v_max_mem": "",
// Snooper can be enabled with the `snooper_enabled` flag per client or globally
// Defaults to false
"snooper_enabled": false,
// Count of nodes to spin up for this participant
// Default to 1
"count": 1
} }
], ],
...@@ -166,10 +191,13 @@ To configure the package behaviour, you can modify your `network_params.json` fi ...@@ -166,10 +191,13 @@ To configure the package behaviour, you can modify your `network_params.json` fi
// This mnemonic will a) be used to create keystores for all the types of validators that we have and b) be used to generate a CL genesis.ssz that has the children // This mnemonic will a) be used to create keystores for all the types of validators that we have and b) be used to generate a CL genesis.ssz that has the children
// validator keys already preregistered as validators // validator keys already preregistered as validators
"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", "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",
// How long you want the network to wait before starting up
"genesis_delay": 120,
// The epoch at which the capella and deneb forks are set to occur. // The epoch at which the capella and deneb forks are set to occur.
"capella_fork_epoch": 2, "capella_fork_epoch": 0,
"deneb_fork_epoch": 4 "deneb_fork_epoch": 4,
"electra_fork_epoch": null,
}, },
// True by defaults such that in addition to the Ethereum network: // True by defaults such that in addition to the Ethereum network:
......
...@@ -21,8 +21,10 @@ ...@@ -21,8 +21,10 @@
"slots_per_epoch": 32, "slots_per_epoch": 32,
"num_validator_keys_per_node": 64, "num_validator_keys_per_node": 64,
"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", "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",
"genesis_delay": 120,
"capella_fork_epoch": 0, "capella_fork_epoch": 0,
"deneb_fork_epoch": 500 "deneb_fork_epoch": 500,
"electra_fork_epoch": null
}, },
"launch_additional_services": true, "launch_additional_services": true,
"wait_for_finalization": false, "wait_for_finalization": false,
......
...@@ -54,9 +54,10 @@ def parse_input(plan, input_args): ...@@ -54,9 +54,10 @@ def parse_input(plan, input_args):
deposit_contract_address=result["network_params"]["deposit_contract_address"], deposit_contract_address=result["network_params"]["deposit_contract_address"],
seconds_per_slot=result["network_params"]["seconds_per_slot"], seconds_per_slot=result["network_params"]["seconds_per_slot"],
slots_per_epoch=result["network_params"]["slots_per_epoch"], slots_per_epoch=result["network_params"]["slots_per_epoch"],
genesis_delay=result["network_params"]["genesis_delay"],
capella_fork_epoch=result["network_params"]["capella_fork_epoch"], capella_fork_epoch=result["network_params"]["capella_fork_epoch"],
deneb_fork_epoch=result["network_params"]["deneb_fork_epoch"], deneb_fork_epoch=result["network_params"]["deneb_fork_epoch"],
genesis_delay=result["network_params"]["genesis_delay"] electra_fork_epoch=result["network_params"]["electra_fork_epoch"],
), ),
mev_params = struct( mev_params = struct(
mev_relay_image = result["mev_params"]["mev_relay_image"], mev_relay_image = result["mev_params"]["mev_relay_image"],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment