Skip to content
This repository has been archived by the owner on Jun 8, 2024. It is now read-only.

Commit

Permalink
Connect to mev boost if env true
Browse files Browse the repository at this point in the history
  • Loading branch information
pablomendezroyo authored Mar 13, 2023
1 parent 8361621 commit cc48c6d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions build/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,11 @@ case $_DAPPNODE_GLOBAL_EXECUTION_CLIENT_PRATER in
;;
esac

# MEVBOOST: https://docs.teku.consensys.net/en/latest/HowTo/Builder-Network/
if [ -n "$_DAPPNODE_GLOBAL_MEVBOOST_PRATER" ] && [ "$_DAPPNODE_GLOBAL_MEVBOOST_PRATER" == "true" ]; then
echo "MEVBOOST is enabled"
MEVBOOST_URL="http://mev-boost.mev-boost-goerli.dappnode:18550"
if curl --retry 5 --retry-delay 5 --retry-all-errors "${MEVBOOST_URL}"; then
EXTRA_OPTS="${EXTRA_OPTS} --payload-builder=true --payload-builder-url=${MEVBOOST_URL}"
else
echo "MEVBOOST is enabled but ${MEVBOOST_URL} is not reachable"
curl -X POST -G 'http://my.dappnode/notification-send' --data-urlencode 'type=danger' --data-urlencode title="${MEVBOOST_URL} is not available" --data-urlencode 'body=Make sure the mevboost is available and running'
fi
EXTRA_OPTS="${EXTRA_OPTS} --payload-builder=true --payload-builder-url=${MEVBOOST_URL}"
fi

#Handle Graffiti Character Limit
Expand Down

0 comments on commit cc48c6d

Please sign in to comment.