Skip to content

Commit

Permalink
refactor: remove cl-forkmon (#286)
Browse files Browse the repository at this point in the history
  • Loading branch information
barnabasbusa committed Oct 11, 2023
1 parent ad02c43 commit aabb9ad
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 138 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,16 +242,15 @@ To configure the package behaviour, you can modify your `network_params.json` fi
// By default includes
// - A transaction spammer & blob spammer is launched to fake transactions sent to the network
// - Forkmon for EL & CL will be launched
// - Forkmon for EL will be launched
// - A prometheus will be started, coupled with grafana
// - A beacon metrics gazer will be launched
// - A light beacon chain explorer will be launched
// - Default: ["tx_spammer", "blob_spammer", "cl_fork_mon", "el_forkmon", "beacon_metrics_gazer", "dora"," "prometheus_grafana"]
// - Default: ["tx_spammer", "blob_spammer", "el_forkmon", "beacon_metrics_gazer", "dora"," "prometheus_grafana"]
"additional_services": [
"tx_spammer",
"blob_spammer",
"goomy_blob"
"cl_forkmon",
"el_forkmon",
"beacon_metrics_gazer",
"dora",
Expand Down
15 changes: 0 additions & 15 deletions main.star
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ transaction_spammer = import_module(
)
blob_spammer = import_module("./src/blob_spammer/blob_spammer.star")
goomy_blob = import_module("./src/goomy_blob/goomy_blob.star")
cl_forkmon = import_module("./src/cl_forkmon/cl_forkmon_launcher.star")
el_forkmon = import_module("./src/el_forkmon/el_forkmon_launcher.star")
beacon_metrics_gazer = import_module(
"./src/beacon_metrics_gazer/beacon_metrics_gazer_launcher.star"
Expand Down Expand Up @@ -256,20 +255,6 @@ def run(plan, args={}):
plan.print("Succesfully launched goomy the blob spammer")
# We need a way to do time.sleep
# TODO add code that waits for CL genesis
elif additional_service == "cl_forkmon":
plan.print("Launching cl forkmon")
cl_forkmon_config_template = read_file(
static_files.CL_FORKMON_CONFIG_TEMPLATE_FILEPATH
)
cl_forkmon.launch_cl_forkmon(
plan,
cl_forkmon_config_template,
all_cl_client_contexts,
final_genesis_timestamp,
network_params.seconds_per_slot,
network_params.slots_per_epoch,
)
plan.print("Succesfully launched consensus layer forkmon")
elif additional_service == "el_forkmon":
plan.print("Launching el forkmon")
el_forkmon_config_template = read_file(
Expand Down
1 change: 0 additions & 1 deletion network_params.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"additional_services": [
"tx_spammer",
"blob_spammer",
"cl_forkmon",
"el_forkmon",
"beacon_metrics_gazer",
"dora",
Expand Down
92 changes: 0 additions & 92 deletions src/cl_forkmon/cl_forkmon_launcher.star

This file was deleted.

1 change: 0 additions & 1 deletion src/package_io/parse_input.star
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ MEV_BOOST_SERVICE_NAME_PREFIX = "mev-boost-"
DEFAULT_ADDITIONAL_SERVICES = [
"tx_spammer",
"blob_spammer",
"cl_forkmon",
"el_forkmon",
"beacon_metrics_gazer",
"dora",
Expand Down
5 changes: 0 additions & 5 deletions src/static_files/static_files.star
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
# The path on the module container where static files are housed
STATIC_FILES_DIRPATH = "/static_files"

# CL Forkmon config
CL_FORKMON_CONFIG_TEMPLATE_FILEPATH = (
STATIC_FILES_DIRPATH + "/cl-forkmon-config/config.toml.tmpl"
)

# EL Forkmon config
EL_FORKMON_CONFIG_TEMPLATE_FILEPATH = (
STATIC_FILES_DIRPATH + "/el-forkmon-config/config.toml.tmpl"
Expand Down
21 changes: 0 additions & 21 deletions static_files/cl-forkmon-config/config.toml.tmpl

This file was deleted.

0 comments on commit aabb9ad

Please sign in to comment.