Skip to content

Commit e1eeed0

Browse files
committed
Rename to ethrex
1 parent 811581e commit e1eeed0

File tree

4 files changed

+33
-33
lines changed

4 files changed

+33
-33
lines changed

src/el/el_launcher.star

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ nethermind = import_module("./nethermind/nethermind_launcher.star")
99
reth = import_module("./reth/reth_launcher.star")
1010
ethereumjs = import_module("./ethereumjs/ethereumjs_launcher.star")
1111
nimbus_eth1 = import_module("./nimbus-eth1/nimbus_launcher.star")
12-
ethereum_rust = import_module("./ethereum_rust/ethereum_rust_launcher.star")
12+
ethrex = import_module("./ethrex/ethrex_launcher.star")
1313

1414
def launch(
1515
plan,
@@ -98,13 +98,13 @@ def launch(
9898
),
9999
"launch_method": nimbus_eth1.launch,
100100
},
101-
constants.EL_TYPE.ethereumrust: {
102-
"launcher": ethereum_rust.new_ethereum_rust_launcher(
101+
constants.EL_TYPE.ethrex: {
102+
"launcher": ethrex.new_ethrex_launcher(
103103
el_cl_data,
104104
jwt_file,
105105
network_params.network,
106106
),
107-
"launch_method": ethereum_rust.launch,
107+
"launch_method": ethrex.launch,
108108
},
109109
}
110110

src/el/ethereum_rust/ethereum_rust_launcher.star

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ METRICS_PORT_ID = "metrics"
2525

2626
# Paths
2727
METRICS_PATH = "/metrics"
28-
EXECUTION_DATA_DIRPATH_ON_CLIENT_CONTAINER = "/data/ethereum_rust/execution-data"
28+
EXECUTION_DATA_DIRPATH_ON_CLIENT_CONTAINER = "/data/ethrex/execution-data"
2929

3030
def get_used_ports(discovery_port=DISCOVERY_PORT_NUM):
3131
used_ports = {
@@ -94,19 +94,19 @@ def launch(
9494
el_max_cpu = (
9595
int(el_max_cpu)
9696
if int(el_max_cpu) > 0
97-
else constants.RAM_CPU_OVERRIDES[network_name]["ethereum_rust_max_cpu"]
97+
else constants.RAM_CPU_OVERRIDES[network_name]["ethrex_max_cpu"]
9898
)
9999
el_min_mem = int(el_min_mem) if int(el_min_mem) > 0 else EXECUTION_MIN_MEMORY
100100
el_max_mem = (
101101
int(el_max_mem)
102102
if int(el_max_mem) > 0
103-
else constants.RAM_CPU_OVERRIDES[network_name]["ethereum_rust_max_mem"]
103+
else constants.RAM_CPU_OVERRIDES[network_name]["ethrex_max_mem"]
104104
)
105105

106106
el_volume_size = (
107107
el_volume_size
108108
if int(el_volume_size) > 0
109-
else constants.VOLUME_SIZE[network_name]["ethereum_rust_volume_size"]
109+
else constants.VOLUME_SIZE[network_name]["ethrex_volume_size"]
110110
)
111111

112112
cl_client_name = service_name.split("-")[3]
@@ -145,8 +145,8 @@ def launch(
145145
)
146146

147147
return el_context.new_el_context(
148-
"ethereum_rust",
149-
"", # ethereum_rust has no enr?
148+
"ethrex",
149+
"", # ethrex has no enr?
150150
enode,
151151
service.ip_address,
152152
RPC_PORT_NUM,
@@ -195,7 +195,7 @@ def get_config(
195195
used_ports = get_used_ports(discovery_port)
196196

197197
cmd = [
198-
"ethereum_rust",
198+
"ethrex",
199199
# "-{0}".format(verbosity_level),
200200
"--datadir=" + EXECUTION_DATA_DIRPATH_ON_CLIENT_CONTAINER,
201201
"--network={0}".format(
@@ -282,7 +282,7 @@ def get_config(
282282
max_memory=el_max_mem,
283283
env_vars=extra_env_vars,
284284
labels=shared_utils.label_maker(
285-
constants.EL_TYPE.ethereumrust,
285+
constants.EL_TYPE.ethrex,
286286
constants.CLIENT_TYPES.el,
287287
image,
288288
cl_client_name,
@@ -293,7 +293,7 @@ def get_config(
293293
)
294294

295295

296-
def new_ethereum_rust_launcher(el_cl_genesis_data, jwt_file, network):
296+
def new_ethrex_launcher(el_cl_genesis_data, jwt_file, network):
297297
return struct(
298298
el_cl_genesis_data=el_cl_genesis_data,
299299
jwt_file=jwt_file,

src/package_io/constants.star

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ EL_TYPE = struct(
77
reth="reth",
88
ethereumjs="ethereumjs",
99
nimbus="nimbus",
10-
ethereumrust="ethereumrust",
10+
ethrex="ethrex",
1111
)
1212

1313
CL_TYPE = struct(
@@ -146,7 +146,7 @@ VOLUME_SIZE = {
146146
"nimbus_volume_size": 500000, # 500GB
147147
"lodestar_volume_size": 500000, # 500GB
148148
"grandine_volume_size": 500000, # 500GB,
149-
"ethereum_rust_volume_size": 500000, # 500GB
149+
"ethrex_volume_size": 500000, # 500GB
150150
},
151151
"sepolia": {
152152
"geth_volume_size": 300000, # 300GB
@@ -162,7 +162,7 @@ VOLUME_SIZE = {
162162
"nimbus_volume_size": 150000, # 150GB
163163
"lodestar_volume_size": 150000, # 150GB
164164
"grandine_volume_size": 150000, # 150GB,
165-
"ethereum_rust_volume_size": 150000, # 150GB
165+
"ethrex_volume_size": 150000, # 150GB
166166
},
167167
"holesky": {
168168
"geth_volume_size": 100000, # 100GB
@@ -178,7 +178,7 @@ VOLUME_SIZE = {
178178
"nimbus_volume_size": 100000, # 100GB
179179
"lodestar_volume_size": 100000, # 100GB
180180
"grandine_volume_size": 100000, # 100GB,
181-
"ethereum_rust_volume_size": 100000, # 100GB
181+
"ethrex_volume_size": 100000, # 100GB
182182
},
183183
"devnets": {
184184
"geth_volume_size": 100000, # 100GB
@@ -194,7 +194,7 @@ VOLUME_SIZE = {
194194
"nimbus_volume_size": 100000, # 100GB
195195
"lodestar_volume_size": 100000, # 100GB
196196
"grandine_volume_size": 100000, # 100GB,
197-
"ethereum_rust_volume_size": 100000, # 100GB
197+
"ethrex_volume_size": 100000, # 100GB
198198
},
199199
"ephemery": {
200200
"geth_volume_size": 5000, # 5GB
@@ -210,7 +210,7 @@ VOLUME_SIZE = {
210210
"nimbus_volume_size": 1000, # 1GB
211211
"lodestar_volume_size": 1000, # 1GB
212212
"grandine_volume_size": 1000, # 1GB
213-
"ethereum_rust_volume_size": 1000, # 1GB
213+
"ethrex_volume_size": 1000, # 1GB
214214
},
215215
"kurtosis": {
216216
"geth_volume_size": 5000, # 5GB
@@ -226,7 +226,7 @@ VOLUME_SIZE = {
226226
"nimbus_volume_size": 1000, # 1GB
227227
"lodestar_volume_size": 1000, # 1GB
228228
"grandine_volume_size": 1000, # 1GB
229-
"ethereum_rust_volume_size": 1000, # 1GB
229+
"ethrex_volume_size": 1000, # 1GB
230230
},
231231
}
232232

@@ -258,8 +258,8 @@ RAM_CPU_OVERRIDES = {
258258
"lodestar_max_cpu": 4000, # 4 cores
259259
"grandine_max_mem": 16384, # 16GB
260260
"grandine_max_cpu": 4000, # 4 cores
261-
"ethereum_rust_max_mem": 16384, # 16GB
262-
"ethereum_rust_max_cpu": 4000, # 4 cores
261+
"ethrex_max_mem": 16384, # 16GB
262+
"ethrex_max_cpu": 4000, # 4 cores
263263
},
264264
"sepolia": {
265265
"geth_max_mem": 4096, # 4GB
@@ -288,8 +288,8 @@ RAM_CPU_OVERRIDES = {
288288
"lodestar_max_cpu": 1000, # 1 core
289289
"grandine_max_mem": 4096, # 4GB
290290
"grandine_max_cpu": 1000, # 1 core
291-
"ethereum_rust_max_mem": 4096, # 4GB
292-
"ethereum_rust_max_cpu": 1000, # 1 core
291+
"ethrex_max_mem": 4096, # 4GB
292+
"ethrex_max_cpu": 1000, # 1 core
293293
},
294294
"holesky": {
295295
"geth_max_mem": 8192, # 8GB
@@ -318,8 +318,8 @@ RAM_CPU_OVERRIDES = {
318318
"lodestar_max_cpu": 2000, # 2 cores
319319
"grandine_max_mem": 8192, # 8GB
320320
"grandine_max_cpu": 2000, # 2 cores
321-
"ethereum_rust_max_mem": 8192, # 8GB
322-
"ethereum_rust_max_cpu": 2000, # 2 cores
321+
"ethrex_max_mem": 8192, # 8GB
322+
"ethrex_max_cpu": 2000, # 2 cores
323323
},
324324
"devnets": {
325325
"geth_max_mem": 4096, # 4GB
@@ -348,8 +348,8 @@ RAM_CPU_OVERRIDES = {
348348
"lodestar_max_cpu": 1000, # 1 core
349349
"grandine_max_mem": 4096, # 4GB
350350
"grandine_max_cpu": 1000, # 1 core
351-
"ethereum_rust_max_mem": 4096, # 4GB
352-
"ethereum_rust_max_cpu": 1000, # 1 core
351+
"ethrex_max_mem": 4096, # 4GB
352+
"ethrex_max_cpu": 1000, # 1 core
353353
},
354354
"ephemery": {
355355
"geth_max_mem": 1024, # 1GB
@@ -378,8 +378,8 @@ RAM_CPU_OVERRIDES = {
378378
"lodestar_max_cpu": 1000, # 1 core
379379
"grandine_max_mem": 1024, # 1GB
380380
"grandine_max_cpu": 1000, # 1 core
381-
"ethereum_rust_max_mem": 1024, # 1GB
382-
"ethereum_rust_max_cpu": 1000, # 1 core
381+
"ethrex_max_mem": 1024, # 1GB
382+
"ethrex_max_cpu": 1000, # 1 core
383383
},
384384
"kurtosis": {
385385
"geth_max_mem": 1024, # 1GB
@@ -408,7 +408,7 @@ RAM_CPU_OVERRIDES = {
408408
"lodestar_max_cpu": 1000, # 1 core
409409
"grandine_max_mem": 2048, # 2GB
410410
"grandine_max_cpu": 1000, # 1 core
411-
"ethereum_rust_max_mem": 1024, # 1GB
412-
"ethereum_rust_max_cpu": 1000, # 1 core
411+
"ethrex_max_mem": 1024, # 1GB
412+
"ethrex_max_cpu": 1000, # 1 core
413413
},
414414
}

src/package_io/input_parser.star

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ DEFAULT_EL_IMAGES = {
1212
"reth": "ghcr.io/paradigmxyz/reth",
1313
"ethereumjs": "ethpandaops/ethereumjs:master",
1414
"nimbus": "ethpandaops/nimbus-eth1:master",
15-
"ethereumrust": "ethereum_rust:latest",
15+
"ethrex": "ethrex:latest",
1616
}
1717

1818
DEFAULT_CL_IMAGES = {

0 commit comments

Comments
 (0)