Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for config file #593

Open
hegjon opened this issue Dec 1, 2023 · 2 comments
Open

Add support for config file #593

hegjon opened this issue Dec 1, 2023 · 2 comments

Comments

@hegjon
Copy link

hegjon commented Dec 1, 2023

I have made RPM package for MEV-Boost that is hosted currently at https://copr.fedorainfracloud.org/coprs/jonny/Ethereum/

The source for the SPEC files used to build the RPM can be found here:
https://github.com/hegjon/mev-boost-rpm

The biggest issue is that the configuration and the systemd unit file is in the same file, making it more harder for administrators to change the config. It would be great to be able to ship a systemd unit file that allows updating the package to also reload the service, while keeping the configuration unchanged.

I have tried to make it better by loading the arguments from EnvironmentFile, but I feel it is only a hack for now:

[email protected]

EnvironmentFile=/etc/mev-boost/%i.conf
ExecStart=/usr/bin/mev-boost $MEV_BOOST_ARGS

And the environment file for mainnet:

MEV_BOOST_ARGS=" \
 -mainnet
 -relay-check \
 -relay YOUR_RELAY_CHOICE_A \
 -relay YOUR_RELAY_CHOICE_B \
 -relay YOUR_RELAY_CHOICE_C \
"
@hegjon
Copy link
Author

hegjon commented Dec 1, 2023

#352 will also run into this issue, it would be great if the setup was the same for both setups

@ralexstokes
Copy link
Collaborator

@hegjon I'll note that I have written mev-boost-rs (repo: https://github.com/ralexstokes/mev-rs, docs: https://mev-rs.pbs.dev/mev-boost-rs.html) so that it takes a single config file as the source of configuration, rather than a laundry list of command line args

the big caveat here is that mev-boost has seen a lot more production usage although I run mev-boost-rs in many of my testnet setups and haven't had any issue to date. you could try running mev-boost-rs in your testnet/staging environments and if you gain confidence then try mainnet

also happy to provide support if you run into any issues along the way

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants