From cc48c6d0922e325c2885919a5307e3020f142db1 Mon Sep 17 00:00:00 2001 From: pablomendezroyo <41727368+pablomendezroyo@users.noreply.github.com> Date: Mon, 13 Mar 2023 16:20:13 +0100 Subject: [PATCH] Connect to mev boost if env true --- build/entrypoint.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/build/entrypoint.sh b/build/entrypoint.sh index f951741..961694f 100755 --- a/build/entrypoint.sh +++ b/build/entrypoint.sh @@ -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