Skip to content

Commit

Permalink
Add MEV Boost to validator client only setup (#1501)
Browse files Browse the repository at this point in the history
  • Loading branch information
haurog authored Sep 1, 2023
1 parent 11b4fc6 commit dc1fe38
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ethd
Original file line number Diff line number Diff line change
Expand Up @@ -2209,6 +2209,15 @@ https://0x98650451ba02064f7b000f5768cf0cf4d4e492317d82871bdc87ef841a0743f69f0f1e
fi
var="MEV_BOOST"
value=$(sed -n -e "s/^${var}=\(.*\)/\1/p" ".env" || true)
# I do mean to match literally
# shellcheck disable=SC2076
if [[ "${CONSENSUS_CLIENT}" =~ "-vc-only.yml" ]]; then
if (whiptail --title "MEV Boost" --yesno "Is MEV Boost configured on your remote consensus client and do you want to use MEV Boost?" 10 60); then
MEV_BOOST="true"
MEV_RELAYS=""
fi
return
fi
if (whiptail --title "MEV Boost" --yesno "Do you want to use MEV Boost?" 10 60) then
MEV_BOOST="true"
if [ "${value}" = "true" ]; then
Expand Down Expand Up @@ -2351,6 +2360,7 @@ config() {
# This gets used, but shellcheck doesn't recognize that
# shellcheck disable=SC2034
CL_NODE="${REMOTE_BEACON}"
query_mev
query_coinbase
query_graffiti
fi
Expand Down

0 comments on commit dc1fe38

Please sign in to comment.