Skip to content

Commit

Permalink
Remove MEV Boost
Browse files Browse the repository at this point in the history
  • Loading branch information
dappnodedev committed Nov 7, 2023
1 parent 444368c commit 6d0e120
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 26 deletions.
3 changes: 0 additions & 3 deletions beacon-chain/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
ARG UPSTREAM_VERSION
FROM chainsafe/lodestar:${UPSTREAM_VERSION}

# curl is required to check if mev-boost is running
RUN apk update && apk add --no-cache curl

COPY jwtsecret.hex /jwtsecret
COPY entrypoint.sh /usr/local/bin/entrypoint.sh

Expand Down
12 changes: 0 additions & 12 deletions beacon-chain/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,6 @@ case $_DAPPNODE_GLOBAL_EXECUTION_CLIENT_HOLESKY in
;;
esac

# MEV-Boost: https://chainsafe.github.io/lodestar/usage/mev-integration/
if [ -n "$_DAPPNODE_GLOBAL_MEVBOOST_HOLESKY" ] && [ "$_DAPPNODE_GLOBAL_MEVBOOST_HOLESKY" == "true" ]; then
echo "MEV-Boost is enabled"
MEVBOOST_URL="http://mev-boost.mev-boost-holesky.dappnode:18550"
if curl --retry 5 --retry-delay 5 --retry-all-errors "${MEVBOOST_URL}"; then
EXTRA_OPTS="--builder --builder.urls=${MEVBOOST_URL} ${EXTRA_OPTS}"
else
echo "MEV-Boost is enabled but the Holesky MEV-Boost package at ${MEVBOOST_URL} is not reachable"
curl -X POST -G 'http://my.dappnode/notification-send' --data-urlencode 'type=danger' --data-urlencode title="${MEVBOOST_URL} can not be reached" --data-urlencode 'body=Make sure the Holesky MEV-Boost DNP is available and running'
fi
fi

exec node --max-old-space-size=${MEMORY_LIMIT} /usr/app/node_modules/.bin/lodestar \
beacon \
--network=holesky \
Expand Down
6 changes: 1 addition & 5 deletions dappnode_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,8 @@
},
"globalEnvs": [
{
"envs": ["EXECUTION_CLIENT_HOLESKY", "MEVBOOST_HOLESKY"],
"envs": ["EXECUTION_CLIENT_HOLESKY"],
"services": ["beacon-chain"]
},
{
"envs": ["MEVBOOST_HOLESKY"],
"services": ["validator"]
}
]
}
6 changes: 0 additions & 6 deletions validator/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
#!/bin/sh

# MEV-Boost: https://chainsafe.github.io/lodestar/usage/mev-integration/
if [ -n "$_DAPPNODE_GLOBAL_MEVBOOST_HOLESKY" ] && [ "$_DAPPNODE_GLOBAL_MEVBOOST_HOLESKY" == "true" ]; then
echo "MEV-Boost is enabled"
EXTRA_OPTS="--builder ${EXTRA_OPTS}"
fi

# Handle Graffiti Character Limit
oLang=$LANG oLcAll=$LC_ALL
LANG=C LC_ALL=C
Expand Down

0 comments on commit 6d0e120

Please sign in to comment.