Skip to content

Refactor ethd config#2530

Open
yorickdowne wants to merge 1 commit intoethstaker:mainfrom
yorickdowne:refactor-config
Open

Refactor ethd config#2530
yorickdowne wants to merge 1 commit intoethstaker:mainfrom
yorickdowne:refactor-config

Conversation

@yorickdowne
Copy link
Copy Markdown
Collaborator

@yorickdowne yorickdowne commented Apr 14, 2026

What I did

Refactor ethd config to make it easier to follow the config workflow for a specific deployment type. This also cleans up the code that was contributed by Lido.

In default.env, COMPOSE_FILE is now a composite of CUSTOM_FILES and CORE_FILES. ethd config only ever touches CORE_FILES. The intent is to allow users that use Siren, Contributoor, &c, to run ethd config and not lose their edits

config() calls __config_${__deployment}. This does make the code less DRY, but far easier to read for me.

__write_vars is an array that has all of the variables that need to be written to .env at the end. The __config_xx and __query_xx functions add to it.

__query_mev() had extensive changes, to handle Lido MEV and non-Lido MEV broadly the same way, UX-wise

query functions have been changed to use the newer choices+=() pattern

Tested all ./ethd config code paths that I could think of, documented in tests

Lido Obol can't be fully tested by me, as it requires an actual live Obol cluster during ethd config

@yorickdowne yorickdowne requested a review from pietjepuk2 April 14, 2026 13:29
@yorickdowne yorickdowne marked this pull request as draft April 14, 2026 13:29
@yorickdowne yorickdowne force-pushed the refactor-config branch 21 times, most recently from 60d129c to 9f97c12 Compare April 15, 2026 10:22
@yorickdowne yorickdowne marked this pull request as ready for review April 15, 2026 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant