Skip to content

Commit b61a128

Browse files
authored
fix!: remove vc_count (ethereum#844)
1 parent 3bb88e0 commit b61a128

File tree

14 files changed

+238
-301
lines changed

14 files changed

+238
-301
lines changed
File renamed without changes.

.github/tests/mev-commit-boost.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,5 @@ additional_services:
1212
- prometheus_grafana
1313
mev_params:
1414
mev_boost_image: ghcr.io/commit-boost/pbs:latest
15-
mev_relay_image: flashbots/mev-boost-relay:latest
1615
network_params:
1716
seconds_per_slot: 3

.github/tests/mix-assert.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ participants:
1313
cl_type: grandine
1414
additional_services:
1515
- assertoor
16+
- dora
1617
assertoor_params:
1718
run_stability_check: false
1819
run_block_proposal_check: true
File renamed without changes.
File renamed without changes.

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -304,10 +304,6 @@ participants:
304304
# - vero: ghcr.io/serenita-org/vero:master
305305
vc_image: ""
306306

307-
# The number of validator clients to run for this participant
308-
# Defaults to 1
309-
vc_count: 1
310-
311307
# The log level string that this participant's validator client should log at
312308
# If this is emptystring then the global `logLevel` parameter's value will be translated into a string appropriate for the client (e.g. if
313309
# global `logLevel` = `info` then Teku would receive `INFO`, Prysm would receive `info`, etc.)

main.star

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,10 @@ def run(plan, args={}):
133133
args_with_right_defaults.mev_params.mev_builder_extra_data,
134134
global_node_selectors,
135135
)
136-
elif args_with_right_defaults.mev_type == constants.FLASHBOTS_MEV_TYPE:
136+
elif (
137+
args_with_right_defaults.mev_type == constants.FLASHBOTS_MEV_TYPE
138+
or args_with_right_defaults.mev_type == constants.COMMIT_BOOST_MEV_TYPE
139+
):
137140
plan.print("Generating flashbots builder config file")
138141
flashbots_builder_config_file = flashbots_mev_rbuilder.new_builder_config(
139142
plan,

network_params.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ participants:
3131
vc_type: lighthouse
3232
vc_image: sigp/lighthouse:latest-unstable
3333
vc_log_level: ""
34-
vc_count: 1
3534
vc_extra_env_vars: {}
3635
vc_extra_labels: {}
3736
vc_extra_params: []

src/cl/cl_launcher.star

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def launch(
120120

121121
cl_service_name = "cl-{0}-{1}-{2}".format(index_str, cl_type, el_type)
122122
new_cl_node_validator_keystores = None
123-
if participant.validator_count != 0 and participant.vc_count != 0:
123+
if participant.validator_count != 0:
124124
new_cl_node_validator_keystores = preregistered_validator_keys_for_nodes[
125125
index
126126
]
@@ -145,16 +145,16 @@ def launch(
145145
snooper_engine_context
146146
)
147147
)
148-
148+
checkpoint_sync_url = args_with_right_defaults.checkpoint_sync_url
149149
if args_with_right_defaults.checkpoint_sync_enabled:
150150
if args_with_right_defaults.checkpoint_sync_url == "":
151151
if (
152152
network_params.network in constants.PUBLIC_NETWORKS
153153
or network_params.network == constants.NETWORK_NAME.ephemery
154154
):
155-
args_with_right_defaults.checkpoint_sync_url = (
156-
constants.CHECKPOINT_SYNC_URL[network_params.network]
157-
)
155+
checkpoint_sync_url = constants.CHECKPOINT_SYNC_URL[
156+
network_params.network
157+
]
158158
else:
159159
fail(
160160
"Checkpoint sync URL is required if you enabled checkpoint_sync for custom networks. Please provide a valid URL."
@@ -178,7 +178,7 @@ def launch(
178178
tolerations,
179179
node_selectors,
180180
args_with_right_defaults.checkpoint_sync_enabled,
181-
args_with_right_defaults.checkpoint_sync_url,
181+
checkpoint_sync_url,
182182
args_with_right_defaults.port_publisher,
183183
index,
184184
)
@@ -199,7 +199,7 @@ def launch(
199199
tolerations,
200200
node_selectors,
201201
args_with_right_defaults.checkpoint_sync_enabled,
202-
args_with_right_defaults.checkpoint_sync_url,
202+
checkpoint_sync_url,
203203
args_with_right_defaults.port_publisher,
204204
index,
205205
)

src/el/reth/reth_launcher.star

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,10 @@ def get_config(
136136
constants.METRICS_PORT_ID: METRICS_PORT_NUM,
137137
}
138138

139-
if launcher.builder_type == "flashbots":
139+
if (
140+
launcher.builder_type == constants.FLASHBOTS_MEV_TYPE
141+
or launcher.builder_type == constants.COMMIT_BOOST_MEV_TYPE
142+
):
140143
used_port_assignments[constants.RBUILDER_PORT_ID] = RBUILDER_PORT_NUM
141144

142145
used_ports = shared_utils.get_port_specs(used_port_assignments)
@@ -161,7 +164,10 @@ def get_config(
161164
"--http.addr=0.0.0.0",
162165
"--http.corsdomain=*",
163166
"--http.api=admin,net,eth,web3,debug,txpool,trace{0}".format(
164-
",flashbots" if launcher.builder_type == "flashbots" else ""
167+
",flashbots"
168+
if launcher.builder_type == constants.FLASHBOTS_MEV_TYPE
169+
or launcher.builder_type == constants.COMMIT_BOOST_MEV_TYPE
170+
else ""
165171
),
166172
"--ws",
167173
"--ws.addr=0.0.0.0",
@@ -220,11 +226,14 @@ def get_config(
220226
)
221227
env_vars = {}
222228
image = participant.el_image
223-
if launcher.builder_type == "mev-rs":
229+
if launcher.builder_type == constants.MEV_RS_MEV_TYPE:
224230
files[
225231
mev_rs_builder.MEV_BUILDER_MOUNT_DIRPATH_ON_SERVICE
226232
] = mev_rs_builder.MEV_BUILDER_FILES_ARTIFACT_NAME
227-
elif launcher.builder_type == "flashbots":
233+
elif (
234+
launcher.builder_type == constants.FLASHBOTS_MEV_TYPE
235+
or launcher.builder_type == constants.COMMIT_BOOST_MEV_TYPE
236+
):
228237
image = constants.DEFAULT_FLASHBOTS_BUILDER_IMAGE
229238
cl_client_name = service_name.split("-")[4]
230239
cmd.append("--engine.experimental")

0 commit comments

Comments
 (0)