Skip to content

Commit

Permalink
feat: differentiate builder ec by suffixing it with '-builder' (#347)
Browse files Browse the repository at this point in the history
Resolves #119

---------

Co-authored-by: Barnabas Busa <busa.barnabas@gmail.com>
  • Loading branch information
bharath-123 and barnabasbusa committed Nov 21, 2023
1 parent a887cff commit c558cb2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/package_io/constants.star
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
EL_CLIENT_TYPE = struct(
gethbuilder="geth-builder",
geth="geth",
erigon="erigon",
nethermind="nethermind",
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 @@ -518,6 +518,9 @@ def enrich_mev_extra_params(parsed_arguments_dict, mev_prefix, mev_port, mev_typ

if mev_type == "full":
mev_participant = default_participant()
mev_participant["el_client_type"] = (
mev_participant["el_client_type"] + "-builder"
)
mev_participant.update(
{
"el_client_image": parsed_arguments_dict["mev_params"][
Expand Down
10 changes: 10 additions & 0 deletions src/participant_network.star
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,16 @@ def launch_participant_network(
),
"launch_method": geth.launch,
},
constants.EL_CLIENT_TYPE.gethbuilder: {
"launcher": geth.new_geth_launcher(
network_params.network_id,
el_cl_data,
final_genesis_timestamp,
network_params.capella_fork_epoch,
network_params.electra_fork_epoch,
),
"launch_method": geth.launch,
},
constants.EL_CLIENT_TYPE.besu: {
"launcher": besu.new_besu_launcher(network_params.network_id, el_cl_data),
"launch_method": besu.launch,
Expand Down

0 comments on commit c558cb2

Please sign in to comment.